Soma Pal
Soma Pal

Reputation: 21

Profile-Guided-Optimizations by GCC - Profile File Analysis

I am working with Profile-Guided Optimizations (PGO) with GCC, using -fprofile-generate to collect execution data and -fprofile-use to optimize your executable based on the collected profile (.gcda file). I am using gcov-dump to see the .gcda file but are struggling to understand what the counters represent.

bitcnt-bitcnt_1_1.gcda: a1000000: 2:OBJECT_SUMMARY runs=1, sum_max=2056754800 bitcnt-bitcnt_1_1.gcda: 01000000: 3:FUNCTION ident=810470159, lineno_checksum=0x9850d046, cfg_checksum=0x1ae95a91 bitcnt-bitcnt_1_1.gcda: 01a10000: 6:COUNTERS arcs 3 counts bitcnt-bitcnt_1_1.gcda: 01af0000: 2:COUNTERS time_profiler 1 counts

  1. How can I read .gcda file (human-readable format) . Is there any other way to see .gcda files?
  2. Explain counters in the above sample profile file.
  3. What Counters Does GCC Insert for Profiling?

Searched but did not find any documents .

Upvotes: 2

Views: 32

Answers (0)

Related Questions