From dd73ed4678a3623f1c71ceb88aec481de5b9d64e Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Fri, 11 Apr 2025 22:26:00 +0300 Subject: jo --- internal/flamegraph/collapsed.go | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'internal/flamegraph/collapsed.go') 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 { -- cgit v1.2.3