Mark Dewing
2015-10-12 17:44:51 UTC
I've created a prototype for profiling Numba code (based on the vmprof
stack sampler). It does function-level profiling of the JIT'ed code and
the Python code. The output can be viewed in KCachegrind.
It currently only works for 64-bit linux.
Install directions using Anaconda:
1. Create a new environment: 'conda create -n profiling python numpy', and
switch to it: 'source activate profiling'
2. Install prototype versions of Numba and llvmlite: 'conda install -c
https://conda.anaconda.org/mdewing numba-profiling'
3. Install prototype version of vmprof: 'conda install -c
https://conda.anaconda.org/mdewing vmprof-numba'
4. Make sure libunwind is installed. (On Ubuntu 'apt-get install
libunwind8-dev'.)
Profile a python script with 'vmprofrun <python script> [arguments to
script]'. The output file ('vmprof-<pid>.out') can be viewed with
KCachegrind.
More info here:
http://markdewing.github.io/blog/posts/prototype-for-profiling-python/
Mark
stack sampler). It does function-level profiling of the JIT'ed code and
the Python code. The output can be viewed in KCachegrind.
It currently only works for 64-bit linux.
Install directions using Anaconda:
1. Create a new environment: 'conda create -n profiling python numpy', and
switch to it: 'source activate profiling'
2. Install prototype versions of Numba and llvmlite: 'conda install -c
https://conda.anaconda.org/mdewing numba-profiling'
3. Install prototype version of vmprof: 'conda install -c
https://conda.anaconda.org/mdewing vmprof-numba'
4. Make sure libunwind is installed. (On Ubuntu 'apt-get install
libunwind8-dev'.)
Profile a python script with 'vmprofrun <python script> [arguments to
script]'. The output file ('vmprof-<pid>.out') can be viewed with
KCachegrind.
More info here:
http://markdewing.github.io/blog/posts/prototype-for-profiling-python/
Mark
--
You received this message because you are subscribed to the Google Groups "Numba Public Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to numba-users+***@continuum.io.
To post to this group, send email to numba-***@continuum.io.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/numba-users/7a58a9c8-7d6a-4756-af8e-02e0d73cbe03%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
You received this message because you are subscribed to the Google Groups "Numba Public Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to numba-users+***@continuum.io.
To post to this group, send email to numba-***@continuum.io.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/numba-users/7a58a9c8-7d6a-4756-af8e-02e0d73cbe03%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.