diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-20 14:37:41 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-20 14:37:41 +0300 |
| commit | 96355c79a38032ab4bd880b3b3ff4192ae709795 (patch) | |
| tree | 7a395706e3db680f6e695c8602501741eed6ad45 /internal/streamrow/row.go | |
| parent | f063e626a28339735da583142e5af864a60c2111 (diff) | |
task 27: add KindSleep and requested sleep metric
Diffstat (limited to 'internal/streamrow/row.go')
| -rw-r--r-- | internal/streamrow/row.go | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/internal/streamrow/row.go b/internal/streamrow/row.go index 7497583..a6ccdf7 100644 --- a/internal/streamrow/row.go +++ b/internal/streamrow/row.go @@ -25,9 +25,11 @@ type Row struct { Bytes uint64 // AddressSpaceBytes tracks memory-region extent for memory-management syscalls. AddressSpaceBytes uint64 - RetVal int64 - IsError bool - FD int32 + // RequestedSleepNs stores requested sleep duration metadata for sleep syscalls. + RequestedSleepNs int64 + RetVal int64 + IsError bool + FD int32 } func (r Row) SyscallValue() string { @@ -113,6 +115,7 @@ func New(seq uint64, pair *event.Pair) Row { GapNs: pair.DurationToPrev, Bytes: pair.Bytes, AddressSpaceBytes: pair.AddressSpaceBytes, + RequestedSleepNs: pair.RequestedSleepNs, FD: UnknownFD, } if fd, ok := pair.FileDescriptor(); ok { |
