Skip to content

Opt-in scope-profiler regions, off by default - #113

Merged
max-models merged 5 commits into
develfrom
opt-in-profiling
Oct 22, 2026
Merged

max-models merged 5 commits into
develfrom
opt-in-profiling

Conversation

@max-models

Copy link
Copy Markdown
Owner

Adds scope-profiler regions on the expensive operations, behind the opt-in tag cunumpy: they record nothing unless the application enables it with setup(enable_tags=["cunumpy"]), SCOPE_PROFILER_ENABLE_TAGS=cunumpy or scope-profiler run --enable-tag cunumpy. Switched off, a region costs one extra call (about 0.1-0.2 µs).

Needs scope-profiler 0.7.5 (max-models/scope-profiler#341); run uv lock here once that is on scope-profiler devel.

@max-models
max-models merged commit 5ebc6e3 into devel Oct 22, 2026
22 of 23 checks passed
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.

1 participant