Thanks for the clarification Than & Robert,
I think I'm understanding how to read the tree now. In order to discern the call hierarchy
for an entry,I look at the caller/s and then can search the tree for the caller/s and then
look at the caller's caller/s... etc.
One thing that is still puzzling me though is that I would expect the "cum" value for the
caller of a function to be at least as big as the "cum" of the callee.
In this case it there is only one entry that is the caller of time.now and that is time.Now time.now has a "cum" of 15.59% where time.Now has 0.03%.
I'm pasting the full output of the pprof execution below, in case it is helpful to diagnose any problem, if there is a problem.
$ go tool pprof -tree -edgefraction 0 -nodefraction 0 -nodecount 100000 -focus time.now cpu.prof
File: worker.test
Build ID: eb61fef12cfb2b944ae334117319bec71750a839
Type: cpu
Time: Oct 19, 2019 at 9:21am (BST)
Duration: 1.21mins, Total samples = 132.61s (182.50%)
Active filters:
focus=time.now