-
Notifications
You must be signed in to change notification settings - Fork 0
Add ZoneProfilers support #40
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds support for ZoneProfilers to enable detailed performance profiling of simulations, and refactors the codebase to improve maintainability.
- Introduces
RunStatestruct to encapsulate simulation state (RNG, step, state, SHA256, trajectory path) - Adds optional
profilerparameter throughout the codebase withNullProfiler()default for zero overhead - Refactors duplicated simulation loop code into reusable
do_a_step!andinit_run_statefunctions
Reviewed Changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| src/run-sim.jl | Adds RunState struct and refactors simulation functions to accept profiler parameter; consolidates duplicated loop logic |
| src/file-saving.jl | Updates write_traj_file to return SHA256 hash and adds profiler instrumentation |
| src/MEDYANSimRunner.jl | Consolidates imports from individual files and adds ZoneProfilers dependency |
| src/outputdiff.jl | Removes redundant imports now in main module file |
| README.md | Adds documentation for ZoneProfilers integration with usage examples |
| Project.toml | Adds ZoneProfilers dependency, updates Julia version to 1.12, reorganizes workspace config |
| .github/workflows/CI.yml | Updates CI to test Julia 1.12 instead of 1.11 |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 6 out of 7 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Also, generally refactor things. https://github.com/nhz2/ZoneProfilers.jl