最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

profiling - arm embedded gcc toolcahin can't produce valid grof data - Stack Overflow

programmeradmin0浏览0评论

Recently I tried to create a gprof profile data in my project (STM32 project) But I can't get time data from gmon.out file. I tried a compile simple c project in my system with MinGW but can't get a time data with that compiler too. I searched on internet for understanding where is the problem but still can't understood where is the problem.

  • all the commands same with the tututorials no problem about function calls or getting txt file.

  • with MinGW and arm-none-eabi-gcc can't get time data but both can gime gmon.out file

  • there is no problem about semi-hosting to get files from embedded board

Is anyone know how to solve it?

I tried to install latest version of mingw but this time I believe generated data is not accurate because program worked for 20 seconds but the values I get is like that:

Each sample counts as 0.01 seconds.
  %   cumulative   self              self     total           
 time   seconds   seconds    calls  ms/call  ms/call  name    
 50.00      0.01     0.01   131023     0.00     0.00  function_b
 50.00      0.02     0.01                             _mcount_private
  0.00      0.02     0.00     1023     0.00     0.00  function_a
  0.00      0.02     0.00        2     0.00     4.96  dump_profile_data
  0.00      0.02     0.00        1     0.00     0.00  profile_end
  0.00      0.02     0.00        1     0.00     0.00  profile_start

as you see generated value is too different than expected, could you explain why it's happening like that and is there any option that I should open or do before process.

发布评论

评论列表(0)

  1. 暂无评论