summaryrefslogtreecommitdiff
path: root/internal/flamegraph/collapsed.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-03-22 20:50:51 +0200
committerPaul Buetow <paul@buetow.org>2025-03-22 20:50:51 +0200
commitb74bada7341ec17f6962748a696730e0e187c03f (patch)
tree5b1d1f92e97d23482eb79af536287096e7e0fb78 /internal/flamegraph/collapsed.go
parentdb4bbaf8aa06e323151dd55391b2ebeee26ef5ec (diff)
generating fcntl boilerplate
Diffstat (limited to 'internal/flamegraph/collapsed.go')
-rw-r--r--internal/flamegraph/collapsed.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/flamegraph/collapsed.go b/internal/flamegraph/collapsed.go
index 3b2f636..2c3e05a 100644
--- a/internal/flamegraph/collapsed.go
+++ b/internal/flamegraph/collapsed.go
@@ -18,6 +18,11 @@ func (c *counter) merge(other counter) {
c.duration += other.duration
}
+// TODO: make it generic, generate multiple trace points
+// path, traceid (syscall name), comm, pid, tid
+// traceid, path is by default set in this order
+// store an intermediate format which then can be converted to the others...
+// e.g. path / traceid / comm / pid / tid / counter
type collapsed map[string]map[types.TraceId]counter
// TODO: Unit test this