diff options
| author | Paul Buetow <paul@buetow.org> | 2025-04-10 22:30:16 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-04-10 22:30:16 +0300 |
| commit | 1eeae89f5b1fcff41694b311fe699a65788cef6b (patch) | |
| tree | 28ef5d6702a58edbba92a41b957df897866f0e27 /internal/flamegraph/iordata.go | |
| parent | 4eca989fa649538e78038999f5e4cc21acca1db9 (diff) | |
can generate flamegraphs
Diffstat (limited to 'internal/flamegraph/iordata.go')
| -rw-r--r-- | internal/flamegraph/iordata.go | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/internal/flamegraph/iordata.go b/internal/flamegraph/iordata.go index 6974329..cef01ff 100644 --- a/internal/flamegraph/iordata.go +++ b/internal/flamegraph/iordata.go @@ -198,7 +198,7 @@ type iterRecord struct { func (ir iterRecord) StringByName(name string) string { switch name { case "path": - return ir.path + return strings.Join(strings.Split(ir.path, "/"), ";/") case "comm": return ir.comm case "tracepoint": @@ -209,14 +209,6 @@ func (ir iterRecord) StringByName(name string) string { return fmt.Sprint(ir.tid) case "flags": return ir.flags.String() - case "count": - return fmt.Sprint(ir.cnt.Count) - case "duration": - return fmt.Sprint(ir.cnt.Duration) - case "durationToPrev": - return fmt.Sprint(ir.cnt.DurationToPrev) - case "bytes": - return fmt.Sprint(ir.cnt.Bytes) default: panic(fmt.Sprintln("No", name, "in record")) } |
