Skip to content

Commit

Permalink
Enable profiling of Cython functions
Browse files Browse the repository at this point in the history
As it is not possible to profile Cython functions by default, this adds
a few options to ensure that Cython compiles these functions with
profiling support enabled. This way we should now be able to see how
long they take with cProfile as used in our nightly benchmarks.
  • Loading branch information
jakirkham committed Dec 1, 2020
1 parent 58c4a69 commit e5101b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nightly-benchmark/run-dgx-benchmark.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ which python

echo "Cythonize Distributed"
pushd "${CONDA_PREFIX}/lib/python3.8/site-packages/"
cythonize -i \
cythonize -i --directive="profile=True" \
"distributed/protocol/serialize.py" \
"distributed/scheduler.py" \

Expand Down

0 comments on commit e5101b6

Please sign in to comment.