summaryrefslogtreecommitdiff
path: root/json/profile/json.go
diff options
context:
space:
mode:
Diffstat (limited to 'json/profile/json.go')
-rw-r--r--json/profile/json.go4
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