diff options
Diffstat (limited to 'internal/statsengine/syscall.go')
| -rw-r--r-- | internal/statsengine/syscall.go | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/internal/statsengine/syscall.go b/internal/statsengine/syscall.go index 93931d1..2ef929a 100644 --- a/internal/statsengine/syscall.go +++ b/internal/statsengine/syscall.go @@ -195,18 +195,19 @@ func (s *syscallStats) ensurePercentiles() { func (s syscallSnapshotInput) toSnapshot(rateDiv float64) SyscallSnapshot { return SyscallSnapshot{ - TraceID: s.traceID, - Name: s.name, - Count: s.count, - RatePerSec: safeRate(s.count, rateDiv), - Errors: s.errorCount, - Bytes: s.totalBytes, - LatencyMinNs: s.minLatency, - LatencyMaxNs: s.maxLatency, - LatencyMeanNs: float64(s.totalLatency) / float64(maxU64(s.count, 1)), - LatencyP50Ns: s.p50Latency, - LatencyP95Ns: s.p95Latency, - LatencyP99Ns: s.p99Latency, + TraceID: s.traceID, + Name: s.name, + Count: s.count, + RatePerSec: safeRate(s.count, rateDiv), + Errors: s.errorCount, + Bytes: s.totalBytes, + LatencyMinNs: s.minLatency, + LatencyMaxNs: s.maxLatency, + LatencyMeanNs: float64(s.totalLatency) / float64(maxU64(s.count, 1)), + TotalLatencyNs: s.totalLatency, + LatencyP50Ns: s.p50Latency, + LatencyP95Ns: s.p95Latency, + LatencyP99Ns: s.p99Latency, } } |
