diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-05 23:53:01 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-05 23:53:01 +0200 |
| commit | acd91c7c11658360e0540f9d550f1fe0da167109 (patch) | |
| tree | 2117c92bb17a1ffa3da8a09f93e614976c2fc375 /internal/flamegraph | |
| parent | f6135befedb7da8603ecff2c59b155effd0183db (diff) | |
Normalize Go import grouping with local ior section
Diffstat (limited to 'internal/flamegraph')
| -rw-r--r-- | internal/flamegraph/counter.go | 1 | ||||
| -rw-r--r-- | internal/flamegraph/iordata.go | 7 | ||||
| -rw-r--r-- | internal/flamegraph/iordata_test.go | 3 | ||||
| -rw-r--r-- | internal/flamegraph/iordatacollector.go | 3 | ||||
| -rw-r--r-- | internal/flamegraph/livetrie.go | 3 | ||||
| -rw-r--r-- | internal/flamegraph/livetrie_test.go | 7 | ||||
| -rw-r--r-- | internal/flamegraph/worker.go | 3 |
7 files changed, 17 insertions, 10 deletions
diff --git a/internal/flamegraph/counter.go b/internal/flamegraph/counter.go index ae727d4..539d017 100644 --- a/internal/flamegraph/counter.go +++ b/internal/flamegraph/counter.go @@ -10,6 +10,7 @@ import ( // - Duration is the syscall runtime on the same thread. // - DurationToPrev is the inter-syscall gap on the same thread and is attributed // to the current node; there is no separate "idle" pseudo-node. +// // Bytes is only populated for read/write/transfer syscalls. type Counter struct { Count uint64 diff --git a/internal/flamegraph/iordata.go b/internal/flamegraph/iordata.go index 61a65a9..13b78fd 100644 --- a/internal/flamegraph/iordata.go +++ b/internal/flamegraph/iordata.go @@ -5,14 +5,15 @@ import ( "encoding/gob" "fmt" "io" - "ior/internal/event" - "ior/internal/file" - "ior/internal/types" "iter" "os" "strings" "time" + "ior/internal/event" + "ior/internal/file" + "ior/internal/types" + // Is there a zstd library part of Go 1.25 "github.com/DataDog/zstd" ) diff --git a/internal/flamegraph/iordata_test.go b/internal/flamegraph/iordata_test.go index 54f1ed5..5e95976 100644 --- a/internal/flamegraph/iordata_test.go +++ b/internal/flamegraph/iordata_test.go @@ -2,9 +2,10 @@ package flamegraph import ( "bytes" - "ior/internal/types" "syscall" "testing" + + "ior/internal/types" ) func counterAt(iod iorData, path pathType, traceID traceIdType, comm commType, pid pidType, tid tidType, flags flagsType) (Counter, bool) { diff --git a/internal/flamegraph/iordatacollector.go b/internal/flamegraph/iordatacollector.go index 9e92b63..a2ae731 100644 --- a/internal/flamegraph/iordatacollector.go +++ b/internal/flamegraph/iordatacollector.go @@ -3,9 +3,10 @@ package flamegraph import ( "context" "fmt" - "ior/internal/event" "runtime" "sync" + + "ior/internal/event" ) type IorDataCollector struct { diff --git a/internal/flamegraph/livetrie.go b/internal/flamegraph/livetrie.go index 100e03b..db46af5 100644 --- a/internal/flamegraph/livetrie.go +++ b/internal/flamegraph/livetrie.go @@ -3,12 +3,13 @@ package flamegraph import ( "encoding/json" "fmt" - "ior/internal/event" "slices" "sort" "strings" "sync" "sync/atomic" + + "ior/internal/event" ) const liveTrieMinFraction = 0.001 diff --git a/internal/flamegraph/livetrie_test.go b/internal/flamegraph/livetrie_test.go index 1315c71..e569e00 100644 --- a/internal/flamegraph/livetrie_test.go +++ b/internal/flamegraph/livetrie_test.go @@ -4,15 +4,16 @@ import ( "bytes" "encoding/json" "fmt" - "ior/internal/event" - "ior/internal/file" - "ior/internal/types" "os" "runtime" "sync" "sync/atomic" "testing" "time" + + "ior/internal/event" + "ior/internal/file" + "ior/internal/types" ) func TestLiveTrieIngestAndSnapshotRoundTrip(t *testing.T) { diff --git a/internal/flamegraph/worker.go b/internal/flamegraph/worker.go index 0f49568..1e8c639 100644 --- a/internal/flamegraph/worker.go +++ b/internal/flamegraph/worker.go @@ -2,8 +2,9 @@ package flamegraph import ( "context" - "ior/internal/event" "sync" + + "ior/internal/event" ) type worker struct { |
