Sample profiles are stored in a string map which is basically an unordered map. Printing out profiles by simply walking the string map doesn't enforce an order. I'm sorting the map in the decreasing order of total samples to enable a more stable dump, which is good for comparing two dumps. Reviewed By: wenlei, wlei Differential Revision: https://reviews.llvm.org/D108147
43 lines
991 B
Plaintext
43 lines
991 B
Plaintext
Function: main: 368038, 0, 7 sampled lines
|
|
Samples collected in the function's body {
|
|
4: 1068
|
|
4.2: 1068
|
|
5: 2150
|
|
5.1: 2150
|
|
6: 4160
|
|
7: 1068
|
|
9: 4128, calls: _Z3bari:2942 _Z3fooi:1262
|
|
}
|
|
Samples collected in inlined callsites {
|
|
10: inlined callee: inline1: 2000, 0, 1 sampled lines
|
|
Samples collected in the function's body {
|
|
1: 2000
|
|
}
|
|
No inlined callsites in this function
|
|
10: inlined callee: inline2: 4000, 0, 1 sampled lines
|
|
Samples collected in the function's body {
|
|
1: 4000
|
|
}
|
|
No inlined callsites in this function
|
|
}
|
|
Function: _Z3bari: 40602, 2874, 1 sampled lines
|
|
Samples collected in the function's body {
|
|
1: 2874
|
|
}
|
|
No inlined callsites in this function
|
|
Function: _Z3fooi: 15422, 1220, 1 sampled lines
|
|
Samples collected in the function's body {
|
|
1: 1220
|
|
}
|
|
No inlined callsites in this function
|
|
======== Dump profile symbol list ========
|
|
_Z3goov
|
|
_Z3sumii
|
|
__libc_csu_fini
|
|
__libc_csu_init
|
|
_dl_relocate_static_pie
|
|
_fini
|
|
_init
|
|
_start
|
|
main
|