dump_gprof.gdb 544 B

123456789
  1. # Please call gprof_collect(0); in your c code after the code needs profiling
  2. # call this script in Nuclei Studio IDE Debugger Console like this below
  3. # source nuclei_sdk/Components/profiling/dump_gprof.gdb
  4. if gprof_data.buf != 0
  5. printf "dump binary memory gmon.out 0x%lx 0x%lx\n", gprof_data.buf, gprof_data.buf + gprof_data.size
  6. dump binary memory gmon.out gprof_data.buf gprof_data.buf + gprof_data.size
  7. else
  8. printf "WARNING: No gprof data found, did you call gprof_collect(0) in your c code after the code you want to profiling!"
  9. end