diff options
Diffstat (limited to 'internal/flamegraph/collapsed.go')
| -rw-r--r-- | internal/flamegraph/collapsed.go | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/internal/flamegraph/collapsed.go b/internal/flamegraph/collapsed.go index 68090b8..d3a690a 100644 --- a/internal/flamegraph/collapsed.go +++ b/internal/flamegraph/collapsed.go @@ -8,10 +8,16 @@ import ( "github.com/DataDog/zstd" ) +// Collapsed represents a structure used to process and store information +// related to a collapsed flamegraph. It includes the following fields: +// - iorFile: The path to the input/output report file. +// - fields: A list of field names used in the flamegraph processing. +// - countField: The name of the field that represents the count or weight +// in the flamegraph data. type Collapsed struct { - iorFile string - fields []string - countField string + iorFile string // Path to the input/output report file. + fields []string // List of field names used in processing. + countField string // Field name representing the count or weight. } func NewCollapsed(iorFile string, fields []string, countField string) Collapsed { |
