diff options
author | Adam Scarr <adam@vektah.net> | 2017-08-08 23:11:47 +1000 |
---|---|---|
committer | Adam Scarr <adam@vektah.net> | 2017-08-08 23:11:47 +1000 |
commit | acd48fdfa4653dbeffd41f6b773ae4552e6c55bc (patch) | |
tree | c65e965b0bf88ccd28f657f11c36b7e73d3eaea2 /json/profile/json.go | |
parent | ef04f70d750e8e447e096ac7ffb49d8831008a9c (diff) |
Add readme and calc example
Diffstat (limited to 'json/profile/json.go')
-rw-r--r-- | json/profile/json.go | 4 |
1 files changed, 3 insertions, 1 deletions
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 |