Skip to content

Add opt-in inspection instrumentation for stratum-gui - #248

Closed
e-strauss wants to merge 1 commit into
deem-data:mainfrom
e-strauss:instrumention-pr
Closed

e-strauss wants to merge 1 commit into
deem-data:mainfrom
e-strauss:instrumention-pr

Conversation

@e-strauss

Copy link
Copy Markdown
Collaborator

Plan snapshots, per-node timings and hardware tracking, consumed by stratum-gui. Inspection only and off by default: enabled via a new separate dev_config(diagnostics_dir=..., hardware_utilization=True). The new DEV_FLAGS are now completely separated from the user facing configs to start cleaning up the current polluted configs.

All code lives in stratum/_instrumentation; the scheduler exposes one optional observer hook and the API calls hooks that no-op when disabled.

Disabled, the scheduler is indistinguishable from main (3.81 vs 3.87 µs per no-op operator); API hooks add ~0.2 µs per grid_search/evaluate call.

@codecov

codecov Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Flag Coverage Δ
unittests 92.71% <100.00%> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
stratum/__init__.py 80.00% <100.00%> (ø)
stratum/_api.py 97.22% <100.00%> (+0.16%) ⬆️
stratum/_config.py 96.00% <100.00%> (+0.47%) ⬆️
stratum/optimizer/_optimize.py 95.93% <100.00%> (+0.08%) ⬆️
stratum/runtime/_scheduler.py 90.96% <100.00%> (+0.48%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Plan snapshots, per-node timings and hardware tracking, consumed by
stratum-gui. Inspection only and off by default: enabled via
set_config(diagnostics_dir=..., hardware_utilization=True). All code lives
in stratum/_instrumentation; the scheduler exposes one optional observer
hook and the API calls hooks that no-op when disabled.

Disabled, the scheduler is indistinguishable from main (3.81 vs 3.87 µs
per no-op operator); API hooks add ~0.2 µs per grid_search/evaluate call.
@e-strauss
e-strauss requested a review from phaniarnab October 14, 2026 19:30
@e-strauss e-strauss closed this in ce81884 Oct 16, 2026
@e-strauss
e-strauss deleted the instrumention-pr branch October 16, 2026 15:17
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