Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "burn command [flags] <input>", Short: `A tool to convert performance profiles to hierarchical data structures that can be visualized as flame graphs`, Long: ` burn 🔥 is a CLI tool to convert performance profiles to hierarchical data structures that can be visualized as flame graphs. burn can also generate a self contained html flame graphs from the same data. Examples: burn convert examples/out.perf burn convert --folded examples/out.perf-folded burn html examples/out.perf `, PersistentPreRun: func(cmd *cobra.Command, args []string) { if cpuProfile != "" { f, err := os.Create(cpuProfile) if err != nil { log.Fatal(err) } pprof.StartCPUProfile(f) } }, Run: func(cmd *cobra.Command, args []string) { cmd.Usage() }, PersistentPostRun: func(cmd *cobra.Command, args []string) { if cpuProfile != "" { pprof.StopCPUProfile() } if memProfile != "" { f, err := os.Create(memProfile) if err != nil { log.Fatal(err) } pprof.WriteHeapProfile(f) f.Close() } }, }
RootCmd represents the base command when called without any subcommands
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.