Hi I am trying to use perf on a yocto system. When I do perf record ./applicaton I get this data

Children      Self  Command     Shared Object               Symbol
+   37.50%    37.50%  application  libc-2.26.so                [.] _int_malloc
+    9.27%     9.27%  application  libc-2.26.so                [.] memset
+    5.71%     0.00%  application  [unknown]                   [.] 00000000
+    3.79%     0.00%  udevd       [unknown]                   [.] 00000000  

since I have two functions in my code functiona and functionb which is been called by main.c. I need the profiling should be more specific to those two functions like

Children      Self  Command     Shared Object               Symbol
+   37.50%    37.50%  application  functiona                [.] _int_malloc
+    9.27%     9.27%  application  functionb               [.] memset

something like that. How can I get that using perf tool or oprofile tool

0

There are 0 best solutions below