diff options
| author | Paul Buetow <paul@buetow.org> | 2026-02-21 14:31:29 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-02-21 14:31:29 +0200 |
| commit | e949b616ce4511801ff70a4644c29ef920727419 (patch) | |
| tree | 6a968337feb5a11a2e0995e0080037b3bdbec409 /internal/flamegraph/iordata.go | |
| parent | b5792f8e23d1599dcce49bc83e5d128abee484f3 (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/iordata.go')
| -rw-r--r-- | internal/flamegraph/iordata.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/flamegraph/iordata.go b/internal/flamegraph/iordata.go index 1c2b0f4..463ed48 100644 --- a/internal/flamegraph/iordata.go +++ b/internal/flamegraph/iordata.go @@ -51,7 +51,7 @@ func cloneString(s string) string { } func (iod iorData) addEventPair(ev *event.Pair) { - cnt := Counter{Count: 1, Duration: ev.Duration, DurationToPrev: ev.DurationToPrev} + cnt := Counter{Count: 1, Duration: ev.Duration, DurationToPrev: ev.DurationToPrev, Bytes: ev.Bytes} iod.add(ev.FileName(), ev.EnterEv.GetTraceId(), strings.TrimSpace(ev.Comm), ev.EnterEv.GetPid(), ev.EnterEv.GetTid(), ev.Flags(), cnt) } |
