aboutsummaryrefslogtreecommitdiff
path: root/src/internal/trace/order.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/internal/trace/order.go')
-rw-r--r--src/internal/trace/order.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/internal/trace/order.go b/src/internal/trace/order.go
index 07a6e13ffe..5c6e78b285 100644
--- a/src/internal/trace/order.go
+++ b/src/internal/trace/order.go
@@ -58,7 +58,7 @@ func order1007(m map[int][]*Event) (events []*Event, err error) {
// off of the profBuf queue. Re-sort them by the timestamp we captured
// inside the signal handler.
sort.Stable(eventList(m[ProfileP]))
- var batches []*eventBatch
+ batches := make([]*eventBatch, 0, len(m))
for _, v := range m {
pending += len(v)
batches = append(batches, &eventBatch{v, false})