- 论坛徽章:
- 0
|
gprof ./a.out
BFD: ./a.out(.rel.plt): relocation 0 has invalid symbol index 1
BFD: ./a.out(.rel.plt): relocation 1 has invalid symbol index 2
BFD: ./a.out(.rel.plt): relocation 2 has invalid symbol index 3
BFD: ./a.out(.rel.plt): relocation 3 has invalid symbol index 4
BFD: ./a.out(.rel.plt): relocation 4 has invalid symbol index 5
BFD: ./a.out(.rel.plt): relocation 5 has invalid symbol index 7
BFD: ./a.out(.rel.plt): relocation 6 has invalid symbol index 8
BFD: ./a.out(.rel.plt): relocation 7 has invalid symbol index 9
BFD: ./a.out(.rel.plt): relocation 8 has invalid symbol index 11
BFD: ./a.out(.rel.plt): relocation 9 has invalid symbol index 12
BFD: ./a.out(.rel.plt): relocation 10 has invalid symbol index 13
BFD: ./a.out(.rel.plt): relocation 11 has invalid symbol index 15
BFD: ./a.out(.rel.plt): relocation 12 has invalid symbol index 18
BFD: ./a.out(.rel.plt): relocation 13 has invalid symbol index 20
BFD: ./a.out(.rel.plt): relocation 14 has invalid symbol index 21
Flat profile:
Each sample counts as 0.01 seconds.
% cumulative self self total
time seconds seconds calls ms/call ms/call name
99.69 19.20 19.20 5000 3.84 3.84 draw
0.31 19.26 0.06 main
% the percentage of the total running time of the
time program used by this function.
cumulative a running sum of the number of seconds accounted
seconds for by this function and those listed above it.
self the number of seconds accounted for by this
seconds function alone. This is the major sort for this
listing.
calls the number of times this function was invoked, if
this function is profiled, else blank.
self the average number of milliseconds spent in this
ms/call function per call, if this function is profiled,
else blank.
total the average number of milliseconds spent in this
ms/call function and its descendents per call, if this
function is profiled, else blank.
name the name of the function. This is the minor sort
for this listing. The index shows the location of
the function in the gprof listing. If the index is
in parenthesis it shows where it would appear in
the gprof listing if it were to be printed.
Call graph (explanation follows)
granularity: each sample hit covers 4 byte(s) for 0.05% of 19.26 seconds
index % time self children called name
<spontaneous>
[1] 100.0 0.06 19.20 main [1]
19.20 0.00 5000/5000 draw [2]
-----------------------------------------------
19.20 0.00 5000/5000 main [1]
[2] 99.7 19.20 0.00 5000 draw [2]
我的也有问题, 也无法显示出系统接口的调用
加了-lc_p 就无法编译通过
linux |
|