Permalink
Browse files

misc/devel.mk: add target pprof

  • Loading branch information...
1 parent f904855 commit e93d31a776d996a1724e9ea5a3389f861150afa8 @knieriem committed Jun 30, 2011
Showing with 11 additions and 1 deletion.
  1. +11 −1 misc/devel.mk
View
12 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 <m > /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\

0 comments on commit e93d31a

Please sign in to comment.