Skip to content

Commit

Permalink
Added documentation on automated profiling.
Browse files Browse the repository at this point in the history
  • Loading branch information
djgroen committed Oct 12, 2023
1 parent acb9b46 commit a2fb083
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/FabFlee_Automated_Flee_based_simulation.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,4 +214,10 @@ When running this script, you can expect the following type of visualisation to
<img src="../images/plot_flee_agents.png" alt="Image" width="800" />
</p>


### *Advanced: Profiling Parallel Flee Simulations*

1. To run a `pflee` simulation and generate profile traces, you can add the argument `profile=True` to the end of your FabSim3 command.

2. After you have fetched the results using `fabsim localhost fetch_results`, you can then visualize the profile trace using the command: `fabsim localhost plot_flee_profile:<results_dir>`

This latter command requires the `graphviz` and `gprof2dot` Python3 modules, as well as the `eog` module for automated image display.

0 comments on commit a2fb083

Please sign in to comment.