File: Makefile

package info (click to toggle)
golang-github-sourcegraph-annotate 0.0~git20160123.f4cad6c-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 136 kB
  • sloc: makefile: 9
file content (9 lines) | stat: -rw-r--r-- 251 bytes parent folder | download
1
2
3
4
5
6
7
8
9
.PHONY: benchmark.txt

benchmark.txt:
	go test -test.run='^$$' -test.bench='.*' -test.benchmem > $@ 2>&1
	cat $@

profile:
	go test -test.run='^$$' -test.bench='.*' -test.cpuprofile=/tmp/annotate.prof
	go tool pprof ./annotate.test /tmp/annotate.prof