From 8e91a3446f4785b569a8709914eff77a5af51d3c Mon Sep 17 00:00:00 2001 From: Will Charczuk Date: Sun, 5 Mar 2017 23:37:30 -0800 Subject: [PATCH] wiring up pprof. --- _examples/scatter/main.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/_examples/scatter/main.go b/_examples/scatter/main.go index 4417d0d..33edad9 100644 --- a/_examples/scatter/main.go +++ b/_examples/scatter/main.go @@ -4,6 +4,8 @@ import ( "log" "net/http" + _ "net/http/pprof" + "github.com/wcharczuk/go-chart" ) @@ -16,8 +18,8 @@ func drawChart(res http.ResponseWriter, req *http.Request) { StrokeWidth: chart.Disabled, DotWidth: 3, }, - XValues: chart.Sequence.Random(4096, 1024), - YValues: chart.Sequence.Random(4096, 1024), + XValues: chart.Sequence.Random(8192, 1024), + YValues: chart.Sequence.Random(8192, 1024), }, }, } @@ -27,7 +29,6 @@ func drawChart(res http.ResponseWriter, req *http.Request) { if err != nil { log.Println(err.Error()) } - } func unit(res http.ResponseWriter, req *http.Request) {