vmprof / vmprof-python

vmprof - a statistical program profiler
http://vmprof.com
Other
433 stars 54 forks source link

powerpc64 / ppc64le support #237

Closed matthiasdiener closed 3 years ago

matthiasdiener commented 3 years ago

WIP - not working yet and looking for feedback.

A few questions:

cc: @fijal @mattip

matthiasdiener commented 3 years ago

Current status: It works on powerpc64, but only for the Python callstack:

$ vmprofshow vmprof_cpuburn.dat tree
100.0%  <unknown code>  100.0%  <unknown>
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
 51.6% |.|.|.|. _next_rand  51.6%  vmprof/test/cpuburn.py:15

Not sure if this is a libbacktrace or libunwind issue.

matthiasdiener commented 3 years ago

It seems that native profiling is not available in ppc64le (no getcontext in libunwind https://github.com/libunwind/libunwind/issues/33), so setting this as ready for review.

matthiasdiener commented 3 years ago

Gentle ping for @fijal @mattip for a review.

mattip commented 3 years ago

Thanks @matthiasdiener

mattip commented 3 years ago

Since we are running CI on travis, I think it would be nice to add a ppc64le job