From e5101b6ae7d6a073abc10a84f175a56bb811b163 Mon Sep 17 00:00:00 2001 From: John Kirkham Date: Mon, 30 Nov 2020 16:52:09 -0800 Subject: [PATCH] Enable profiling of Cython functions 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. --- nightly-benchmark/run-dgx-benchmark.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nightly-benchmark/run-dgx-benchmark.sh b/nightly-benchmark/run-dgx-benchmark.sh index 1150a9f..0335799 100755 --- a/nightly-benchmark/run-dgx-benchmark.sh +++ b/nightly-benchmark/run-dgx-benchmark.sh @@ -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" \