[go-nuts] Re: profiling webserver with pprof and router middleware

2017-12-04 Thread Karan Chaudhary
Great find! On Saturday, 2 December 2017 15:57:18 UTC+5:30, basti skalendudler wrote: > > > > I finally found the problem!!! > > Since I am using a custom mux, I n

[go-nuts] Re: profiling webserver with pprof and router middleware

2017-12-02 Thread skaldendudler
I finally found the problem!!! Since I am using a custom mux, I needed to register the pprof handler funcs to my custom router router.HandlerFunc(http.MethodGe

[go-nuts] Re: profiling webserver with pprof and router middleware

2017-12-01 Thread skaldendudler
Specifically, I wanted to see heap allocations generated by incoming requests, so I can optimize my handler functions I will write a more basic webserver example to see if I can produce the result I am expecting Am Donnerstag, 30. November 2017 14:39:56 UTC+1 schrieb Karan Chaudhary: > > Attach

[go-nuts] Re: profiling webserver with pprof and router middleware

2017-11-30 Thread Karan Chaudhary
Attaching png: On Thursday, 30 November 2017 19:09:04 UTC+5:30, Karan Chaudhary wrote: > > Are you just trying to see how heap allocation can be seen using > de

[go-nuts] Re: profiling webserver with pprof and router middleware

2017-11-30 Thread Karan Chaudhary
Are you just trying to see how heap allocation can be seen using debug/pprof? Maybe you're allocating too less. Try to allocate exponentialy. package main import ( "log" "net/http" "time" _ "net/http/pprof" ) func expalloc() { x := make([]int, 0) for i := 0; i < 10; i++ { x = append(x, i)

[go-nuts] Re: profiling webserver with pprof and router middleware

2017-11-29 Thread skaldendudler
Does noone have an idea? :( Am Montag, 27. November 2017 13:37:43 UTC+1 schrieb basti skalendudler: > > The go tool pprof command is interactive, so I thought it is enough type > 'png' to get the image after the benchmark is run > > I tested to start go tool pprof now as well during and after the

[go-nuts] Re: profiling webserver with pprof and router middleware

2017-11-27 Thread skaldendudler
The go tool pprof command is interactive, so I thought it is enough type 'png' to get the image after the benchmark is run I tested to start go tool pprof now as well during and after the benchmark -> nothing changes Am Montag, 27. November 2017 04:37:48 UTC+1 schrieb Karan Chaudhary: > > From

[go-nuts] Re: profiling webserver with pprof and router middleware

2017-11-26 Thread Karan Chaudhary
>From the top of my head, shouldn't the benchmark be done when traffic is being sent to the server and not before it is sent? On Sunday, 26 November 2017 00:11:40 UTC+5:30, basti skalendudler wrote: > > Hey guiys, I posted a StackOF question two days ago, but so far nobody was > able to help me