diff options
| author | Paul Buetow <paul@buetow.org> | 2025-04-11 11:16:51 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-04-11 11:16:51 +0300 |
| commit | e37d7ac428b990a86f52bfd29ff5b9865637587f (patch) | |
| tree | 2697e15be7365b5b3bb5ee640128e8038cb916a7 /internal | |
| parent | 0124c447f15539c24d1987f5339caa01ca5e9020 (diff) | |
fixes
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/flags/flags.go | 1 | ||||
| -rw-r--r-- | internal/flamegraph/collapsed.go | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/internal/flags/flags.go b/internal/flags/flags.go index bcdb7b8..775b357 100644 --- a/internal/flags/flags.go +++ b/internal/flags/flags.go @@ -21,6 +21,7 @@ var validCollapsedFields = []string{ "tracepoint", "pid", "tid", + "flags", } var validCollapsedCounts = []string{ diff --git a/internal/flamegraph/collapsed.go b/internal/flamegraph/collapsed.go index 68090b8..1b979e8 100644 --- a/internal/flamegraph/collapsed.go +++ b/internal/flamegraph/collapsed.go @@ -55,7 +55,7 @@ func (c Collapsed) Write(iorDataFile string) (string, error) { for _, fieldName := range c.fields { fieldValues = append(fieldValues, record.StringByName(fieldName)) } - writer.Write([]byte(fmt.Sprintf("%s = %d\n", + writer.Write([]byte(fmt.Sprintf("%s %d\n", strings.Join(fieldValues, ";"), record.cnt.ValueByName(c.countField), ))) |
