Skip to content

Commit

Permalink
Support memory profiling with Scalene and add flag to ./run.sh.
Browse files Browse the repository at this point in the history
  • Loading branch information
rocodes committed Oct 16, 2024
1 parent 0d7ef59 commit 0cbe1a8
Show file tree
Hide file tree
Showing 5 changed files with 434 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,7 @@ venv.bak/
*.swp

*.gpg

# Scalene memory profiling artifacts
client/profile.json
client/profile.html
8 changes: 8 additions & 0 deletions client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -477,3 +477,11 @@ Logs can be found in the `{sdc-home}/logs`. If you are debugging a version of th
[MAY]: https://datatracker.ietf.org/doc/html/rfc2119#section-5
[MUST]: https://datatracker.ietf.org/doc/html/rfc2119#section-1
[MUST NOT]: https://datatracker.ietf.org/doc/html/rfc2119#section-2
## Memory Profiling
Use [Scalene](https://github.com/plasma-umass/scalene) for memory profiling by running the client
with the `--memprofile` flag. After a few seconds, a browser-based GUI will appear and allow you to
inspect the CPU usage and memory usage of various calls over time, as well as point to code that may
create memory leaks. It's also possible to profile specific components, or tune the parameters to profile only specific components, only certain thresholds, and so on.
Loading

0 comments on commit 0cbe1a8

Please sign in to comment.