summaryrefslogtreecommitdiff
path: root/internal/flamegraph/counter.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-04-06 21:59:54 +0300
committerPaul Buetow <paul@buetow.org>2025-04-06 21:59:54 +0300
commit95e3477875c0e31e0c6907ab6afe4ce48fb37391 (patch)
treea4965cd66b377fbe18d54d66243227d59399fa3e /internal/flamegraph/counter.go
parent6ca3491f421e8506fa3ff832a51b3a7d8a5c7ef6 (diff)
more refined iod format
Diffstat (limited to 'internal/flamegraph/counter.go')
-rw-r--r--internal/flamegraph/counter.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/flamegraph/counter.go b/internal/flamegraph/counter.go
index 98ac035..bc30df0 100644
--- a/internal/flamegraph/counter.go
+++ b/internal/flamegraph/counter.go
@@ -4,12 +4,13 @@ type counter struct {
count uint64
duration uint64
durationToPrev uint64
- // bytes uint64 TODO implement
+ bytes uint64 // TODO: implement
}
func (c counter) add(other counter) counter {
c.count += other.count
c.duration += other.duration
c.durationToPrev += other.durationToPrev
+ c.bytes += other.bytes
return c
}