To measure wall clock time, perf -e task-clock can be used:
perf record --call-graph dwarf,16000 -e task-clock ./testProf
99.92% 0.19% testProf testProf [.] main
|
--99.73%--main
readRandFileValue
|
|--96.41%--__GI_fseek (inlined)
| |
| --95.45%--_IO_new_file_seekoff (inlined)
| |
| |--46.41%--__GI___libc_read (inlined)
| |
| --45.47%--__lseek64 (inlined)
|
--2.41%--getRandomBoundedInt
|
--1.15%--rand
|
--1.05%--__random
|
--0.73%--__random_r
To measure wall clock time,
perf -e task-clockcan be used: