Skip to content

Commit

Permalink
fixup: propagate off-CPU profiling in user space
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Lehner <[email protected]>
  • Loading branch information
florianl committed Nov 1, 2024
1 parent 44df2c4 commit 3cd36fe
Show file tree
Hide file tree
Showing 5 changed files with 244 additions and 168 deletions.
2 changes: 2 additions & 0 deletions host/host.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ type Trace struct {
KTime times.KTime
PID libpf.PID
TID libpf.PID
Origin int
OffTime uint64 // Time a task was off-cpu.
APMTraceID libpf.APMTraceID
APMTransactionID libpf.APMTransactionID
}
2 changes: 2 additions & 0 deletions reporter/iface.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ type TraceEventMeta struct {
Comm string
APMServiceName string
PID, TID libpf.PID
Origin int
OffTime uint64
}

type TraceReporter interface {
Expand Down
Loading

0 comments on commit 3cd36fe

Please sign in to comment.