From 902ee9ae8f21d2a3bb570f66c0d082b9b1cce76b Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9my=20Oudompheng?= Date: Wed, 5 Jun 2013 00:40:49 +0200 Subject: [PATCH] misc/pprof: register cnew and runtime.cnewarray as malloc wrappers. These functions were introduced by revision 139919984600 and should not show up on profiles for consistency. R=golang-dev, iant CC=golang-dev https://golang.org/cl/10003043 --- misc/pprof | 3 +++ 1 file changed, 3 insertions(+) diff --git a/misc/pprof b/misc/pprof index f471c73951..5a43b66d2c 100755 --- a/misc/pprof +++ b/misc/pprof @@ -2616,6 +2616,7 @@ sub RemoveUninterestingFrames { 'operator new[]', # Go 'catstring', + 'cnew', 'copyin', 'gostring', 'gostringsize', @@ -2640,6 +2641,8 @@ sub RemoveUninterestingFrames { 'unsafe.New', 'runtime.mallocgc', 'runtime.catstring', + 'runtime.cnew', + 'runtime.cnewarray', 'runtime.growslice', 'runtime.ifaceT2E', 'runtime.ifaceT2I', -- 2.48.1