From e93d31a776d996a1724e9ea5a3389f861150afa8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Teichgr=C3=A4ber?= Date: Fri, 1 Jul 2011 00:40:45 +0200 Subject: [PATCH] misc/devel.mk: add target pprof --- misc/devel.mk | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/misc/devel.mk b/misc/devel.mk index 770643c..1caece3 100644 --- a/misc/devel.mk +++ b/misc/devel.mk @@ -12,5 +12,15 @@ diff: ,,c orig-c-src/markdown_parser.leg: orig-c-src +# +# pprof +# +pprof: cmd m + ./cmd/markdown -cpuprofile /tmp/md.prof /tmp/,,md.out + @echo gopprof \'--nodefraction=0.1\' ./cmd/markdown /tmp/md.prof + @echo gopprof ./cmd/markdown /tmp/md.prof -.PHONY: diff gofmt +.PHONY:\ + diff\ + gofmt\ + pprof\