diff --git a/episodes/files/pred-prey/predprey_out.prof b/episodes/files/pred-prey/predprey_out.prof new file mode 100644 index 00000000..aefcf437 Binary files /dev/null and b/episodes/files/pred-prey/predprey_out.prof differ diff --git a/episodes/profiling-functions.md b/episodes/profiling-functions.md index 1e73ecf2..1ea1451e 100644 --- a/episodes/profiling-functions.md +++ b/episodes/profiling-functions.md @@ -415,6 +415,15 @@ Other boxes within the diagram correspond to the initialisation of imports, or i The default configuration of the Predator Prey model takes around 10 seconds to run, it may be slower on other hardware. +Download the pre-generated `cProfile` output, this can be opened with `snakeviz` to save waiting for the profiler. + + +* files/pred-prey/predprey_out.prof + +```sh +python -m snakeviz predprey_out.prof +``` + ::::::::::::::::::::::::::::::::::::::::::::: ::::::::::::::::::::::::::::::::::::: challenge