Skip to content

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

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