]> Cypherpunks repositories - gostls13.git/commitdiff
misc/pprof: register cnew and runtime.cnewarray as malloc wrappers.
authorRémy Oudompheng <oudomphe@phare.normalesup.org>
Tue, 4 Jun 2013 22:40:49 +0000 (00:40 +0200)
committerRémy Oudompheng <oudomphe@phare.normalesup.org>
Tue, 4 Jun 2013 22:40:49 +0000 (00:40 +0200)
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

index f471c739511bbf44e34c923fcc62be4e8b28d262..5a43b66d2cd99622d043cf1a66b0a438fb0db85b 100755 (executable)
@@ -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',