Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions cli/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"github.com/AlexsanderHamir/prof/engine/benchmark"
"github.com/AlexsanderHamir/prof/engine/collector"
"github.com/AlexsanderHamir/prof/engine/tracker"
"github.com/AlexsanderHamir/prof/engine/version"
"github.com/AlexsanderHamir/prof/internal/args"
"github.com/AlexsanderHamir/prof/internal/config"
"github.com/AlexsanderHamir/prof/internal/shared"
Expand Down Expand Up @@ -42,7 +41,6 @@ func CreateRootCmd() *cobra.Command {
rootCmd.AddCommand(createProfAuto())
rootCmd.AddCommand(createSetupCmd())
rootCmd.AddCommand(createTrackCmd())
rootCmd.AddCommand(createVersionCmd())

return rootCmd
}
Expand Down Expand Up @@ -162,17 +160,6 @@ func createTrackManualCmd() *cobra.Command {
return cmd
}

func createVersionCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "version",
Short: "Shows the current version of prof and checks for updates.",
RunE: runVersion,
DisableFlagsInUseLine: true,
}

return cmd
}

// createSetupCmd creates the setup subcommand
func createSetupCmd() *cobra.Command {
cmd := &cobra.Command{
Expand Down Expand Up @@ -224,14 +211,6 @@ func runBenchmarks(_ *cobra.Command, _ []string) error {
return nil
}

// runVersion handles the version command execution
func runVersion(_ *cobra.Command, _ []string) error {
current, latest := version.Check()
output := version.FormatOutput(current, latest)
fmt.Print(output)
return nil
}

// runSetup handles the setup command execution
func runSetup(_ *cobra.Command, _ []string) error {
return config.CreateTemplate()
Expand Down
96 changes: 0 additions & 96 deletions engine/version/version.go

This file was deleted.

21 changes: 19 additions & 2 deletions prof_web_doc/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,14 @@ prof track manual --base path/to/base/report/cpu.txt \
--output-format "detailed"
```

## Result Examples
## Output Formats

Prof's performance comparison provides two output formats to help you understand performance changes at different levels of detail.
Prof's performance comparison provides multiple output formats to help you understand performance changes at different levels of detail and presentation.
**Currently supported formats:**

- **Terminal (default)**
- **HTML**
- **JSON**

### Summary Format

Expand Down Expand Up @@ -208,3 +213,15 @@ Change: +233.33%
Severity: CRITICAL
Recommendation: Critical regression! Immediate investigation required.
```

### HTML & JSON Output

In addition to terminal display, Prof can export both **summary** and **detailed** reports in:

- 📄 **HTML**: shareable and human-friendly
- 🧩 **JSON**: structured format for programmatic use or further integration

```sh
--output-format summary-html
--output-format detailed-json
```
Loading