summaryrefslogtreecommitdiff
path: root/internal/statsengine/process.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/statsengine/process.go')
-rw-r--r--internal/statsengine/process.go13
1 files changed, 7 insertions, 6 deletions
diff --git a/internal/statsengine/process.go b/internal/statsengine/process.go
index 3bfd019..b7eb6e7 100644
--- a/internal/statsengine/process.go
+++ b/internal/statsengine/process.go
@@ -174,11 +174,12 @@ func (s processSnapshotInput) toSnapshot(rateDiv float64) ProcessSnapshot {
}
return ProcessSnapshot{
- PID: s.pid,
- Comm: s.comm,
- Syscalls: s.count,
- RatePerSec: safeRate(s.count, rateDiv),
- Bytes: s.totalBytes,
- AvgLatencyNs: avg,
+ PID: s.pid,
+ Comm: s.comm,
+ Syscalls: s.count,
+ RatePerSec: safeRate(s.count, rateDiv),
+ Bytes: s.totalBytes,
+ AvgLatencyNs: avg,
+ TotalLatencyNs: s.totalLatency,
}
}