Skip to content

Conversation

@nhz2
Copy link
Member

@nhz2 nhz2 commented Nov 11, 2025

Also, generally refactor things. https://github.com/nhz2/ZoneProfilers.jl

Copy link
Contributor

Copilot AI left a 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 RunState struct to encapsulate simulation state (RNG, step, state, SHA256, trajectory path)
  • Adds optional profiler parameter throughout the codebase with NullProfiler() default for zero overhead
  • Refactors duplicated simulation loop code into reusable do_a_step! and init_run_state functions

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.

Copy link
Contributor

Copilot AI left a 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.

@nhz2 nhz2 merged commit f25ea8b into main Nov 11, 2025
9 checks passed
@nhz2 nhz2 deleted the zoneprofilers branch November 11, 2025 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants