summaryrefslogtreecommitdiff
path: root/internal/flamegraph/counter.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-02-21 14:31:29 +0200
committerPaul Buetow <paul@buetow.org>2026-02-21 14:31:29 +0200
commite949b616ce4511801ff70a4644c29ef920727419 (patch)
tree6a968337feb5a11a2e0995e0080037b3bdbec409 /internal/flamegraph/counter.go
parentb5792f8e23d1599dcce49bc83e5d128abee484f3 (diff)
Add byte count tracking to event pairs
Amp-Thread-ID: https://ampcode.com/threads/T-019c8012-eaeb-768d-a264-5a704f3939ef Co-authored-by: Amp <amp@ampcode.com>
Diffstat (limited to 'internal/flamegraph/counter.go')
-rw-r--r--internal/flamegraph/counter.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/flamegraph/counter.go b/internal/flamegraph/counter.go
index 5a162c9..c12453a 100644
--- a/internal/flamegraph/counter.go
+++ b/internal/flamegraph/counter.go
@@ -8,7 +8,7 @@ type Counter struct {
Count uint64
Duration uint64
DurationToPrev uint64
- Bytes uint64 // TODO: implement
+ Bytes uint64 // Bytes transferred (only set for read/write/transfer syscalls)
}
func (c Counter) add(other Counter) Counter {