]> Cypherpunks repositories - gostls13.git/commit
rudimentary real-time profiler.
authorRob Pike <r@golang.org>
Wed, 24 Sep 2008 01:45:44 +0000 (18:45 -0700)
committerRob Pike <r@golang.org>
Wed, 24 Sep 2008 01:45:44 +0000 (18:45 -0700)
commiteea21f8b8507e8d993a956b0985b3732109dbd15
tree9b4caf2bf07ee5a349b9ab6cdd8b4eed18020d7d
parent83267dce11a75bf07c036e6bb24b0bab41f53a43
rudimentary real-time profiler.
tested on mac only.
output like this:
tubenose=% sudo go/src/cmd/prof/6prof -p 71839 -c  -d 10
63.93% mach_semaphore_signal
 4.64% sys·chansend1
 3.93% chanrecv
 2.86% semrelease
 1.43% cas
 1.43% sendchan
 1.07% xadd
 0.71% main·f
 0.71% scheduler
 0.71% sys·gosched
 0.71% dequeue
 ...

R=rsc
DELTA=361  (361 added, 0 deleted, 0 changed)
OCL=15731
CL=15736
src/cmd/prof/Makefile [new file with mode: 0644]
src/cmd/prof/main.c [new file with mode: 0644]