-
Notifications
You must be signed in to change notification settings - Fork 119
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (24 loc) · 882 Bytes
/
Copy pathMakefile
File metadata and controls
34 lines (24 loc) · 882 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
default: build
test:
go test -cover -v
testnew:
go test -cover -run=TestMatchNew -v
bench:
go test -run=XXX -bench=BenchmarkMatch -benchtime=1m -v
cover:
go test -cover -coverpkg github.com/dotabuff/manta,github.com/dotabuff/manta/vbkv -coverprofile /tmp/manta.cov -v
go tool cover -html=/tmp/manta.cov
cpuprofile:
go test -v -run=TestMatch2159568145 -test.cpuprofile=/tmp/manta.cpuprof
go tool pprof -svg -output=/tmp/manta.cpuprof.svg manta.test /tmp/manta.cpuprof
open /tmp/manta.cpuprof.svg
memprofile:
go test -v -run=TestMatch2159568145 -test.memprofile=/tmp/manta.memprof -test.memprofilerate=1
go tool pprof --alloc_space manta.test /tmp/manta.memprof
update: update-protobufs generate
update-protobufs:
go run gen/updateprotos/main.go
generate:
go run gen/callbacks.go
sync-replays:
s3cmd --region=us-west-2 sync ./replays/*.dem s3://manta.dotabuff/