diff options
| author | Paul Buetow <paul@buetow.org> | 2025-04-11 22:26:00 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-04-11 22:26:00 +0300 |
| commit | dd73ed4678a3623f1c71ceb88aec481de5b9d64e (patch) | |
| tree | 342e62c9480bc1cacd20b270e6bb15906ddce406 /internal/flamegraph/tool.go | |
| parent | 0124c447f15539c24d1987f5339caa01ca5e9020 (diff) | |
jo
Diffstat (limited to 'internal/flamegraph/tool.go')
| -rw-r--r-- | internal/flamegraph/tool.go | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/internal/flamegraph/tool.go b/internal/flamegraph/tool.go index 6840e35..0ce33e3 100644 --- a/internal/flamegraph/tool.go +++ b/internal/flamegraph/tool.go @@ -11,10 +11,13 @@ import ( "github.com/DataDog/zstd" ) +// Tool represents a utility for generating flamegraphs. +// It contains the path to the flamegraph tool, the arguments to be passed to it, +// and the output file where the generated flamegraph will be stored. type Tool struct { - flamegraphTool string - args []string - outFile string + flamegraphTool string // Path to the flamegraph tool executable. + args []string // Arguments to be passed to the flamegraph tool. + outFile string // Path to the output file where the flamegraph will be saved. } func NewTool(collapsedFile string) (Tool, error) { |
