Skip to content

Add Plugin-Level Profiler#211

Open
mhliu0001 wants to merge 8 commits intomasterfrom
profiler
Open

Add Plugin-Level Profiler#211
mhliu0001 wants to merge 8 commits intomasterfrom
profiler

Conversation

@mhliu0001
Copy link
Contributor

Adds a profiler module to analyze the performance of individual plugins in the simulation chain, useful for identifying bottlenecks before optimization.

Usage

import appletree as apt

tree = apt.Context(get_file_path("rn220.json"))

# Profile all plugins and show top bottlenecks
apt.profile_context(tree, batch_size=1_000_000)

# Compare individual plugins vs JIT-fused pipeline
apt.compare_plugin_vs_full(tree, batch_size=1_000_000)

# Inspect plugin execution order and generated code
apt.profiler.print_worksheet(component)
apt.profiler.print_component_code(component)

@coveralls
Copy link

coveralls commented Jan 22, 2026

Pull Request Test Coverage Report for Build 21299858151

Details

  • 190 of 190 (100.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+1.0%) to 85.234%

Totals Coverage Status
Change from base Build 21299847632: 1.0%
Covered Lines: 2661
Relevant Lines: 3122

💛 - Coveralls

@mhliu0001
Copy link
Contributor Author

I think the test fails because the upstream strax does not list the module pytz as a dependency. Maybe @dachengx can have a look if you have the time

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.

3 participants