vmprof-python icon indicating copy to clipboard operation
vmprof-python copied to clipboard

ARMv7 support

Open mzakharocsc opened this issue 8 years ago • 4 comments

Hello,

Are there any plans to add ARMv7 support (For Raspberry Pi and the like?)

mzakharocsc avatar Jul 10 '17 16:07 mzakharocsc

Pull requests are very welcome! Usually there is not that much to do for another architecture, still it needs a little fiddling. Have you tried to install vmprof from source on raspberry pi?

planrich avatar Jul 10 '17 18:07 planrich

Yes, it breaks when trying to compile _vmprof.c -> with error 'platform not supported'

mzakharocsc avatar Jul 11 '17 13:07 mzakharocsc

Hi, any updates on this topic?

iurly avatar Mar 05 '18 10:03 iurly

You can try beb98c if that works for you. I have tested it on an armv7l (raspberry pi) and it compiles. I have tried the cpuburn.py example and it gives some reasonable output:

(vmprof3) pi $ python vmprof/test/cpuburn.py
Running for 30 seconds ..                                                  
                                                                          
Actual run-time: 1077.972173690796 / Requested run-time: 1000, 2 iterations. Total iterations: 200000
....

(vmprof3) pi $ vmprofshow vmprof_cpuburn.dat
100.0%  <module>  100.0%  vmprof/test/cpuburn.py:1
100.0% .. test  100.0%  vmprof/test/cpuburn.py:36
100.0% .... burn  100.0%  vmprof/test/cpuburn.py:27
100.0% ...... _iterate  100.0%  vmprof/test/cpuburn.py:20
 52.2% ........ _next_rand  52.2%  vmprof/test/cpuburn.py:15

planrich avatar Mar 06 '18 17:03 planrich