Skip to content

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

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

max-models merged 3 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 patchwork: they record nothing unless the application enables it with setup(enable_tags=["patchwork"]), SCOPE_PROFILER_ENABLE_TAGS=patchwork or scope-profiler run --enable-tag patchwork. 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 5ee4c76 into devel Oct 22, 2026
14 checks passed
@max-models
max-models deleted the opt-in-profiling branch October 22, 2026 06:08
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