gcc - Is it possible to get "execution time consumption" information from gcda files? -


as know compiling code -fprofile-arcs flag makes generate .gcda file after code execution. -ftest-coverage flag , .gcno file after compilation, possible information code executed , how many times , called code coverage report.

is possible in similar way .gcna files profile information similar gprof, functions calls count , execution time information?

i afraid mistaking terminologies here.

gprof: c/c++ program profiler. purpose generate profiling information particular execution, consists of performance statistics control flow between different functions , there relationship propagated time consumed parent function , child functions individually well. so, focus here find performance degrading points in program.

where as,

gcov: c/c++ coverage analysis tool. purpose counts of execution each statement, branches , blocks. so, focus here coverage stats.

hence, moral of story these 2 tools have different purpose of life. ;)

if wish both information can go gprof though has it's limitations @ lot of scenarios, coverage information method level granularity.


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -