On Mon, Jun 5, 2017 at 4:24 PM, <akash...@eng.ucsd.edu> wrote: > > Hi golang-nuts. I am trying to profile the runtime environment scheduler > proc.go and have few questions. > > 1) I was wondering if the pprof profiler is good for profiling the runtime > environment or would my numbers be skewed due to the overhead of pprof?
it should be fine. > 2) regarding the GODEBUG. Till what granularity of time can i trust my > GODEBUG debug logs? I'm not sure how to answer this question as the GODEBUG logs generally don't include any time markings anyhow. When they do include time, the time should be accurate and precise. > 3) Right now, i am trying to understand the runtime especially the relation > between G,M and P. I am using the _test.go files in src/runtime and taking > the pprof/GODEBUG logs. Is this a good way to go about it? It sounds hard. The GODEBUG logs aren't really intended for that, although you will something from GODEBUG=schedtrace=1. I'm not sure what knowledge you are starting from. I wrote a brief intro on Quora at https://www.quora.com/How-does-the-golang-scheduler-work/answer/Ian-Lance-Taylor . Ian -- 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 golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.