Profiling and PGO

98 views
Skip to first unread message

Agustin Horacio Urquiza Toledo

unread,
Feb 9, 2024, 9:43:16 AM2/9/24
to golang-nuts

I’m trying to compare the efficiency of two binaries before and after applying Profile-Guided Optimization . For this, I’m using Go’s profiling, specifically the flame graph. However, I’m getting two almost identical stacks; the only difference is that some functions are inlined. It seems that pprof doesn’t recognize that these functions are part of the same execution path. I need to understand the percentage of improvement I’m getting when compiling with PGO.

My question is: Is there a way to indicate to pprof that these two paths are part of the same execution? Or, is there a way to measure the improvement obtained with PGO?"

qiulaidongfeng

unread,
Feb 9, 2024, 10:26:16 PM2/9/24
to golang-nuts
Using benchmark and benchstat, you can compare the improvement obtained with PGO  .
Reply all
Reply to author
Forward
0 new messages