yinshengkai
1b27b73a99
system/gprof: Support gprof tool
It can perform statistics on running hot spots or record function calls
arm-none-eabi-gprof nuttx/nuttx gmon.out -b
Flat profile:
Each sample counts as 0.001 seconds.
% cumulative self self total
time seconds seconds calls s/call s/call name
66.41 3.55 3.55 43 0.08 0.08 sdelay
33.44 5.34 1.79 44 0.04 0.04 delay
0.07 5.34 0.00 up_idle
0.04 5.34 0.00 nx_start
0.02 5.34 0.00 fdtdump_main
0.02 5.34 0.00 nxsem_wait
0.00 5.34 0.00 1 0.00 5.34 hello_main
0.00 5.34 0.00 1 0.00 0.00 singal_handler
granularity: each sample hit covers 4 byte(s) for 0.02% of 5.34 seconds
index % time self children called name
0.00 5.34 1/1 nxtask_startup [2]
[1] 99.9 0.00 5.34 1 hello_main [1]
3.55 0.00 43/43 sdelay [3]
1.79 0.00 44/44 delay [4]
-----------------------------------------------
<spontaneous>
[2] 99.9 0.00 5.34 nxtask_startup [2]
0.00 5.34 1/1 hello_main [1]
-----------------------------------------------
3.55 0.00 43/43 hello_main [1]
[3] 66.4 3.55 0.00 43 sdelay [3]
-----------------------------------------------
1.79 0.00 44/44 hello_main [1]
[4] 33.4 1.79 0.00 44 delay [4]
-----------------------------------------------
<spontaneous>
[5] 0.1 0.00 0.00 up_idle [5]
-----------------------------------------------
<spontaneous>
[6] 0.0 0.00 0.00 nx_start [6]
-----------------------------------------------
<spontaneous>
[7] 0.0 0.00 0.00 fdtdump_main [7]
-----------------------------------------------
<spontaneous>
[8] 0.0 0.00 0.00 nxsem_wait [8]
-----------------------------------------------
0.00 0.00 1/1 nxsig_deliver [3553]
[9] 0.0 0.00 0.00 1 singal_handler [9]
-----------------------------------------------
Index by function name
[4] delay [6] nx_start [9] singal_handler
[7] fdtdump_main [8] nxsem_wait [5] up_idle
[1] hello_main [3] sdelay
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2024-10-09 23:16:13 +08:00
..
2024-10-07 21:25:42 +08:00
2024-08-20 11:25:48 -03:00
2024-09-30 18:31:03 +08:00
2024-10-09 20:15:49 +08:00
2024-06-30 21:40:25 +08:00
2023-10-10 01:03:42 +08:00
2023-10-30 10:00:01 +08:00
2024-06-30 21:40:25 +08:00
2024-06-30 21:40:25 +08:00
2024-10-09 20:15:49 +08:00
2024-10-04 08:17:51 +08:00
2024-07-10 00:16:25 +08:00
2024-09-08 21:41:23 +08:00
2024-10-09 20:05:11 +08:00
2024-10-01 21:50:08 +08:00
2023-08-16 20:20:03 +03:00
2024-09-11 23:20:48 +08:00
2024-10-01 21:50:08 +08:00
2024-06-30 21:40:25 +08:00
2024-10-09 21:27:35 +08:00
2024-09-26 16:13:29 +08:00
2024-10-09 23:16:13 +08:00
2024-06-30 21:40:25 +08:00
2024-06-30 21:40:25 +08:00
2024-06-30 21:40:25 +08:00
2024-07-20 08:51:59 -03:00
2024-08-20 02:51:01 +08:00
2024-06-30 21:40:25 +08:00
2024-09-13 23:16:26 +08:00
2024-06-30 21:40:25 +08:00
2024-06-30 21:40:25 +08:00
2024-06-30 21:40:25 +08:00
2023-07-08 13:52:02 +08:00
2024-06-30 21:40:25 +08:00
2023-10-23 22:26:13 +08:00
2024-08-21 04:27:17 +08:00
2024-09-13 12:33:45 +08:00
2024-05-23 11:49:08 +08:00
2023-10-16 22:04:18 +08:00
2024-08-20 01:43:20 +08:00
2024-08-30 01:25:16 +08:00
2024-06-30 21:40:25 +08:00
2023-08-22 01:36:42 +08:00
2024-06-30 21:40:25 +08:00
2024-08-16 19:48:18 +08:00
2023-10-30 10:00:01 +08:00
2024-06-30 21:40:25 +08:00
2023-10-16 22:04:18 +08:00
2024-10-09 13:42:31 +08:00
2024-05-23 11:50:08 +08:00
2023-08-28 17:09:18 +03:00
2024-08-30 21:29:50 +08:00
2024-08-24 11:14:47 +08:00
2024-10-09 20:15:49 +08:00
2023-07-08 13:52:02 +08:00
2024-06-30 21:40:25 +08:00
2024-08-22 01:28:27 +08:00
2024-06-30 21:40:25 +08:00
2024-09-26 16:13:29 +08:00
2024-06-24 22:03:43 +08:00
2024-06-30 21:40:25 +08:00
2024-06-30 21:40:25 +08:00
2024-06-30 21:40:25 +08:00
2024-10-02 10:40:05 +02:00
2024-10-02 01:48:47 +08:00
2023-10-30 10:00:01 +08:00
2024-06-30 21:40:25 +08:00
2024-09-28 11:27:03 +08:00
2024-06-30 21:40:25 +08:00
2024-06-30 21:40:25 +08:00
2020-01-31 08:29:24 -06:00
2023-07-08 13:52:02 +08:00
2021-06-07 21:35:33 -05:00
2021-06-07 21:35:33 -05:00