profiling - Visualize OProfile output with gprof2dot (incomplete output) -


So I'm not sure what I'm doing wrong I have a profile generated by oprofile I have this oprofile (that txt Looooots of lines in the file) Change the use of the following command for a text file:

  opreport -c --session-dir = dirname / oprofile_data / & gt; Profile_test.txt  

Here are some sample rows from the profile_test.txt file:

  ------------- - ------------------------------------------------- -------------- 768 2.2662 Liby-2.19.so __mcount_internal 768 100.000 libc-2.19.so __mcount_internal [self] --------------- - ------------------------------------------------- ------------ 718 2.1187 libc.2.19.so _int_free 718 100.000 libc-2.19.so _int_free [self] ----------------- - ------------------------------------------------- ---------- 694 2.0479 libc-2.19.so _int_malloc 694 100.000 libc-2.19.so _int_malloc [self] ------------------- - ------------------------------------------------- -------- 576 1.6997 libc.2.19.so malloc 576 100.000 libc.2.19.so malloc [self] --------------------- - ------------------------------------------------- ------ 565 1.667 2 NS3 :: LogComponent :: IsEnabled (NS3 :: LogLevel) Thirank 565 100,000 NS3 libns3-dev-core-debug.so libns3-dev-core-debug.so :: LogComponent :: IsEnabled (NS3 :: LogLevel) constants [own]  

This Nothing interesting.

Now I want to see it using gprof2dot. I run the script like this:

  ./gprof2dot.py -f oprofile --skew = 0.001 --stip profile_test Txt | Dot-tsvg & gt; Profile_graph.svg  

This generates a file, but there is nothing from profile_test.txt (this is missing all the function calls) and this is a time of call instead of a tree:

article gprof2dot generated

How can I make it better? With a tree structure? .

This is the allocation of real resources through:

  CPU: Intel Haswell microarchitecture, speed 3.201e + 06 MHz (estimated) numbered CPU_CLK_UNHALTED events (clock cycle when not 0x00 (Unit mask) with a unit mask 100000 CPU_CLK_UNHALT are paused with counting ... | Samples |% | ------------------ 37395 100,000 NS 3-Dev -Lena-profiling-debug CPU_CLK_UNHALT ... | Samples |% | ------------------ 23577 63.0485 3888 10.3971 libns3-dev-lte-debug.so 3185 8.5172 libc- 2.19.so 1713 4.5808 No libns3-dev-core-debug.so -vmlinux 1317 3.5219 libstdc ++ ..6.6.1.19 1263 3.3775 libns3-dev-spec trum-debug.so 633 1.6927 libns3-dev-network-debug.so 581 1.5537 ld-2.19.so 551 1.4735 NS3- Dev-Lina- profiling- debug 285 0.7621 libm-2.19.so 69 .1845 libcuda.so.340.29 61 .1631 libns3-dev-internet-debug.so 58 .1551 libpthread-2.19.so 53 .1417 libgcc_s.so.1 42 .1123 libns3- Dev- MPI- debug. so 38 0.1016 libns3-dev-mobility-debug.so 31 0.0829 libns3-dev-buildings-debug.so 22 0.0588 libns3-dev-propagation-debug.so 10 0.0267 libns3-dev-antenna-debug.so 7 0.0187 libns3- Dev -config-store-debug.so 4 0.0107 [vdso ] (Tijiaidi: 24360 category: 0x7fff60ffe000-0x7fff60ffffff) 2 0.0053 libns3-dev-applications-debug.so 2 0.0053 libns3-dev-stats-debug.so 1 0.0027 libns3-dev-fd-net-device-debug.so 1 0.0027 Libns3-dev-point-to-point-debug.sso 0.0027 libcudart.so.6.5.14  


Comments