prometheus/cmd/tsdb/Makefile

12 lines
517 B
Makefile
Raw Normal View History

2016-12-08 03:00:05 -08:00
build:
2017-05-14 02:51:56 -07:00
@go build .
2016-12-08 03:00:05 -08:00
bench: build
2016-12-08 03:00:05 -08:00
@echo ">> running benchmark"
2017-01-16 12:29:53 -08:00
@./tsdb bench write --metrics=$(NUM_METRICS) testdata.1m
@go tool pprof -svg ./tsdb benchout/cpu.prof > benchout/cpuprof.svg
@go tool pprof --inuse_space -svg ./tsdb benchout/mem.prof > benchout/memprof.inuse.svg
@go tool pprof --alloc_space -svg ./tsdb benchout/mem.prof > benchout/memprof.alloc.svg
@go tool pprof -svg ./tsdb benchout/block.prof > benchout/blockprof.svg
2017-05-14 02:51:56 -07:00
@go tool pprof -svg ./tsdb benchout/mutex.prof > benchout/mutexprof.svg