Monitoring Model During Simulation #64
|
When I simulate my network, I would like to know how much time and space is used for each component of my network in order to help optimize it, Is there any way to save the amount of time it takes for each behavior or each object like NeuronGroups to simulate without manually calculating these values? |
Answered by
realamirhe
Nov 18, 2024
Replies: 2 comments 2 replies
|
Here's a code snippet I use to identify and troubleshoot bottlenecks: from pyinstrument import Profiler
with Profiler(async_mode="disabled") as p:
run_your_conex_model_here()
p.print() |
2 replies
Answer selected by
a2l5t8
|
Pymonntorch's Network class has a method for measuring the blocks' time. (Turn |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here's a code snippet I use to identify and troubleshoot bottlenecks: