, foo, 3 .
func foo(){
a() step1
b() step2
do something directly. step3
c() step4
}
, foo, 6 , .
func foo(){
a()
b()
do something directly.
c()
}
flat , 3.cum foo, . ( = step1+ step2 + step3+ step4)
%
top pprof, , . Sum% , / .
, , . sum% 45,17%. :
line1 19.33%
line2 13.27%
line3 6.60%
line4 5.97%
-----------
sum% 45.17%

%
sum% . .
, 91,06% . , . .

Reddit: "" "" golang pprof