summaryrefslogtreecommitdiff
path: root/internal/flamegraph/collapsed.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-04-11 22:26:00 +0300
committerPaul Buetow <paul@buetow.org>2025-04-11 22:26:00 +0300
commitdd73ed4678a3623f1c71ceb88aec481de5b9d64e (patch)
tree342e62c9480bc1cacd20b270e6bb15906ddce406 /internal/flamegraph/collapsed.go
parent0124c447f15539c24d1987f5339caa01ca5e9020 (diff)
jo
Diffstat (limited to 'internal/flamegraph/collapsed.go')
-rw-r--r--internal/flamegraph/collapsed.go12
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 {