summaryrefslogtreecommitdiff
path: root/scripts/cpuprofile.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/cpuprofile.sh')
-rw-r--r--scripts/cpuprofile.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/cpuprofile.sh b/scripts/cpuprofile.sh
new file mode 100644
index 0000000..2f6f18b
--- /dev/null
+++ b/scripts/cpuprofile.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+set -eu
+
+go build ./json/profile/json.go
+./json.exe -cpuprofile cpu.out
+go tool pprof json.exe cpu.out