Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

misc/devel.mk: add target pprof

  • Loading branch information...
commit e93d31a776d996a1724e9ea5a3389f861150afa8 1 parent f904855
authored July 01, 2011

Showing 1 changed file with 11 additions and 1 deletion. Show diff stats Hide diff stats

  1. 12  misc/devel.mk
12  misc/devel.mk
@@ -12,5 +12,15 @@ diff: ,,c
12 12
 
13 13
 orig-c-src/markdown_parser.leg: orig-c-src
14 14
 
  15
+#
  16
+# pprof
  17
+#
  18
+pprof: cmd m
  19
+	./cmd/markdown -cpuprofile /tmp/md.prof <m > /tmp/,,md.out
  20
+	@echo gopprof \'--nodefraction=0.1\' ./cmd/markdown /tmp/md.prof
  21
+	@echo gopprof ./cmd/markdown /tmp/md.prof
15 22
 
16  
-.PHONY: diff gofmt
  23
+.PHONY:\
  24
+	diff\
  25
+	gofmt\
  26
+	pprof\

0 notes on commit e93d31a

Please sign in to comment.
Something went wrong with that request. Please try again.