summaryrefslogtreecommitdiff
path: root/scripts/memprofile.sh
diff options
context:
space:
mode:
authorAdam Scarr <adam@vektah.net>2017-08-13 19:27:41 +1000
committerAdam Scarr <adam@vektah.net>2017-08-13 19:27:41 +1000
commita4677a5834210c85e050de6dad13911a85297499 (patch)
tree0e0802a75478a10b4765fced5eb8c5ddd92183cc /scripts/memprofile.sh
parent5716ddb5e7ca3cb4ee445bdd4958c37aeb033baa (diff)
Clean up autows
Diffstat (limited to 'scripts/memprofile.sh')
-rw-r--r--scripts/memprofile.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/memprofile.sh b/scripts/memprofile.sh
new file mode 100644
index 0000000..0fdc5ec
--- /dev/null
+++ b/scripts/memprofile.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+set -eu
+
+go build ./json/profile/json.go
+./json.exe -memprofile mem.out
+go tool pprof json.exe mem.out