diff options
| author | Paul Buetow <paul@buetow.org> | 2026-02-24 22:55:26 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-02-24 22:55:26 +0200 |
| commit | 78e9de77d8c443fe8dbe560b5ccb168a6142eb55 (patch) | |
| tree | b18f0e45c2bac79b36466ca291ba118a3b8b0f78 /internal/flamegraph/counter.go | |
| parent | 6a761bac0d866f2f3a3b224b603446630803e362 (diff) | |
add docs
Diffstat (limited to 'internal/flamegraph/counter.go')
| -rw-r--r-- | internal/flamegraph/counter.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/internal/flamegraph/counter.go b/internal/flamegraph/counter.go index c12453a..ae727d4 100644 --- a/internal/flamegraph/counter.go +++ b/internal/flamegraph/counter.go @@ -4,6 +4,13 @@ import ( "fmt" ) +// Counter aggregates statistics for a logical flamegraph node. +// +// Duration and DurationToPrev use the same timing semantics as event.Pair: +// - Duration is the syscall runtime on the same thread. +// - DurationToPrev is the inter-syscall gap on the same thread and is attributed +// to the current node; there is no separate "idle" pseudo-node. +// Bytes is only populated for read/write/transfer syscalls. type Counter struct { Count uint64 Duration uint64 |
