prometheus/cmd/tsdb/Makefile

10 lines
337 B
Makefile
Raw Normal View History

2016-12-08 11:00:05 +00:00
build:
@go build .
bench: build
2016-12-08 11:00:05 +00:00
@echo ">> running benchmark"
@./tsdb bench write --metrics=$(NUM_METRICS) testdata.100k
@go tool pprof -svg ./tsdb benchout/cpu.prof > benchout/cpuprof.svg
@go tool pprof -svg ./tsdb benchout/mem.prof > benchout/memprof.svg
@go tool pprof -svg ./tsdb benchout/block.prof > benchout/blockprof.svg