Skip to content

Commit

Permalink
Add pre-generated cprofile output for function profiling ex2
Browse files Browse the repository at this point in the history
  • Loading branch information
Robadob committed Mar 28, 2024
1 parent cc15d24 commit c862754
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Binary file added episodes/files/pred-prey/predprey_out.prof
Binary file not shown.
9 changes: 9 additions & 0 deletions episodes/profiling-functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.


* <a href="files/pred-prey/predprey_out.prof" download>files/pred-prey/predprey_out.prof</a>

```sh
python -m snakeviz predprey_out.prof
```

:::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::: challenge

Expand Down

0 comments on commit c862754

Please sign in to comment.