diff options
| -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) |
