-
Notifications
You must be signed in to change notification settings - Fork 62
Adding debug decorator to print Numba compile stats #925
Adding debug decorator to print Numba compile stats #925
Conversation
|
Hello @kozlov-alexey! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found: There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2020-11-10 12:34:39 UTC |
This adds a decorator to print Numba compilation stats for a decorated function and all nested functions (literally all compiled overloads). Filtering can be made using decorator arguments. NOTE: this may show a bit lesser times than compile time calculated using common approach via first_run_exec_time - second_run_exec_time.
95b9f37 to
bdfb1e2
Compare
|
Example output (if level=0 arg is used): |
|
@Hardcode84 Do you think we can merge this? Some builds are failed due to new pyarrow version, which needs investigation, but this PR is not changing main functionality only adds debug possibilities and is not related to these issues. |
|
Is this critical for us at the moment? I would prefer it to have at least some tests (e.g. run some test in separate process and match output format with regex) |
f44cdcc to
4413230
Compare
@Hardcode84 I added some tests as you have suggested (haven't done that with separate process though - it seems easier to do this in the same test process). |
66c10a9 to
c3011f0
Compare
4fa5ab8 to
647a598
Compare
647a598 to
5436e53
Compare
This adds a decorator to print Numba compilation stats for a decorated function
and all nested functions (literally all compiled overloads). Filtering
can be made using decorator arguments.
NOTE: this may show a bit lesser times than compile time calculated using
common approach via first_run_exec_time - second_run_exec_time.