I have a golang project that has a few layers (http, go-json-rest,
go-sql-driver/mysql). Inputs are received by the http layer, some analysis
is made, the parameters are passed to the db layer, after receiving the
query results from the db layer, the http response is written using the
I have a binary which will do a stress test of about 1 million requests to
the above system. The stress test binary generates the cumulative time
taken for each response too.
However, on the server side, I want to profile the time taken by each of
the function in each of the layers. Using golang's built in pprof
integration, I can measure the CPU time. But I want to measure the actual
time taken for the response (without having to manually add a snippet
like http://blog.stathat.com/2012/10/10/time_any_function_in_go.html )
Are there any tools or pprof options or any other smarter way to capture
the physical world time spent in each place ?
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to email@example.com.
For more options, visit https://groups.google.com/d/optout.