prometheus/cmd/tsdb/Makefile
2017-01-10 15:41:57 +01:00

10 lines
350 B
Makefile

build:
@go build .
bench: build
@echo ">> running benchmark"
@./tsdb bench write --out=$(OUT) --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