Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GSOC] Created a memory usage profile of the TARDIS example simulations #2531

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .mailmap
Original file line number Diff line number Diff line change
Expand Up @@ -259,3 +259,6 @@ Ansh Kumar <[email protected]> Ansh Kumar <[email protected]>

Kim Lingemann <[email protected]> kimsina <[email protected]>
Kim Lingemann <[email protected]> kim <[email protected]>


Asish Kumar <[email protected]>
10 changes: 10 additions & 0 deletions memory-profile/memray/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from tardis import run_tardis

sim = run_tardis("tardis_example.yml",
virtual_packet_logging=True,
show_convergence_plots=True,
export_convergence_plots=True,
log_level="INFO")

# memray memray run --trace-python-allocators main.py
# memray flamegraph --leaks memray-main.py.12683.bin
341 changes: 341 additions & 0 deletions memory-profile/memray/memray-flamegraph.html

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions memory-profile/scalene/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from tardis import run_tardis

sim = run_tardis("tardis_example.yml",
virtual_packet_logging=True,
show_convergence_plots=True,
export_convergence_plots=True,
log_level="INFO")

# scalene --memory --reduced-profile main.py
Loading
Loading