summaryrefslogtreecommitdiff
path: root/internal/flamegraph/tool.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/flamegraph/tool.go')
-rw-r--r--internal/flamegraph/tool.go9
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) {