Skip to content

perf instructions incomplete #6

@arnetheduck

Description

@arnetheduck

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions