diff options
| author | Paul Buetow <paul@buetow.org> | 2025-03-19 22:30:27 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-03-19 22:30:27 +0200 |
| commit | 564bd412b253a89709c7b099918fe4c21540dbe5 (patch) | |
| tree | f06a15a3082139e8b82807195f4021c4018ed145 | |
| parent | 0cbf33424a4034bc18c433cb6bf8fd72544a05b4 (diff) | |
more
| -rw-r--r-- | internal/eventloop.go | 2 | ||||
| -rw-r--r-- | internal/flamegraph/collapsed.go | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/internal/eventloop.go b/internal/eventloop.go index 497522f..321b83f 100644 --- a/internal/eventloop.go +++ b/internal/eventloop.go @@ -119,7 +119,7 @@ func (e *eventLoop) events(ctx context.Context, rawCh <-chan []byte) <-chan *eve return ch } -func (e *eventLoop) processRawEvent(raw []byte, ch chan *event.Pair) { +func (e *eventLoop) processRawEvent(raw []byte, ch chan<- *event.Pair) { e.numTracepoints++ switch EventType(raw[0]) { case ENTER_OPEN_EVENT: diff --git a/internal/flamegraph/collapsed.go b/internal/flamegraph/collapsed.go index f61d917..3b2f636 100644 --- a/internal/flamegraph/collapsed.go +++ b/internal/flamegraph/collapsed.go @@ -62,7 +62,9 @@ func (c collapsed) dump() { func (c collapsed) dumpBy(wg *sync.WaitGroup, outfile string, syscallAtTop bool, by func(counter) uint64) { defer wg.Done() + defer fmt.Println("Dumping done") fmt.Println("Dumping", outfile) + file, err := os.Create(outfile) if err != nil { panic(err) |
