From acd48fdfa4653dbeffd41f6b773ae4552e6c55bc Mon Sep 17 00:00:00 2001 From: Adam Scarr Date: Tue, 8 Aug 2017 23:11:47 +1000 Subject: Add readme and calc example --- json/profile/json.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'json/profile/json.go') diff --git a/json/profile/json.go b/json/profile/json.go index a61e966..639a19e 100644 --- a/json/profile/json.go +++ b/json/profile/json.go @@ -7,6 +7,7 @@ import ( "runtime" "runtime/pprof" + "github.com/vektah/goparsify" "github.com/vektah/goparsify/json" ) @@ -31,7 +32,7 @@ func main() { } }() } - max := 100000 + max := 1000 if *memprofile != "" { runtime.MemProfileRate = 1 max = 1000 @@ -52,6 +53,7 @@ func main() { panic(err) } } + goparsify.DumpDebugStats() } // This string was taken from http://json.org/example.html -- cgit v1.2.3