Repository navigation
Tracing Instrumentation Expansion (#277 umbrella) + perf regression fix - #288
Merged
Merged
Conversation
Collaborator
Author
|
Closing — shipped in commit What landed:
Verification (Phase 6 full regression sweep): 13 improvements, 48 stable, 4 sub-10ns measurement-drift regressions on AccessControl primitives (no edits in those paths). Headline recoveries:
Parent #277 was already closed on 2026-04-26; closing this follow-up brings the umbrella + perf fix to a fully sealed state. Caught in the 2026-05-20 backlog prune ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes the #277 umbrella (Tracing Instrumentation Expansion) by landing all 10 phases (#278–#287) on a single branch, plus the follow-up perf-regression fix.
What's included
#277 umbrella body — ~150 new trace-event kinds across 9 domains, ~25 existing kinds revisited, ~12 hot-path metrics moved to per-tick gauges, plus the two-tier compile-time gating scheme that lets sub-100 ns hot paths carry instrumentation with zero overhead when their category is disabled.
Sub-issues closed (all 10 already marked Done on the project board):
Perf-regression follow-up — fixes the
using var x = TyphonEvent.Begin*→ JIT-inliner regression introduced by the new instrumentation.usingdesugars to try/finally → puts an EH region in the IL → CoreCLR refuses to inline the method. Refactored 14 hot-path call sites using two patterns:PagedMMF.FetchPageToMemory,Transaction.Rollback,WalWriter.WaitForDurable. Hot path stays EH-free + inlinable; cold path keepsusingfor exception safety.Dispose()at end) for sites whose body is engine-internal and provably throw-free — BTree.Add/Remove/RemoveValue, NodeWrapper.MergeLeft/SplitRight, Transaction.Init/PrepareForMutation, Transaction.ECS.Spawn/Destroy, EcsQuery ctor. Every D site carries the// PROFILING-SPAN-NO-THROW-BEGIN/// PROFILING-SPAN-NO-THROW-ENDmarker pair so any future change that introduces a throw path is greppable in code review.Mechanism + worked examples:
claude/scratch/jit-using.md.Verification (Phase 6 full regression sweep)
Headline numbers vs the post-#243 regression baseline:
ClusterIteration_MixedSvVersioned(the original concern that triggered this): 19.24 µs → 9.66 µs (−49.8%)PagedMMFBenchmarks.CacheHit: 11.23 ns → 6.53 ns (−41.8%)CascadeDeleteAll(100×10): 11.16 µs → 6.66 µs (−40.3%)WorkloadBenchmarks.CrudLifecycle: 4.12 µs → 3.64 µs (essentially back to pre-Typed-Event Profiler — general-purpose capture subsystem #243 baseline of 3.36 µs)BTreeMicroBenchmarks.Insert_Random: 358 ns → 342 ns (~70% recovered; remaining gap is the inner try/finally for warm-accessor rent/return — separate architectural work, out of scope here)Phase 5 (Spatial) was scoped out: half its sites have an unsafe
Grow→PageCacheBackpressureTimeoutthrow path (D's premise fails); the other half offer marginal gain (D removes 1 of N EH regions per the Phase 2 lesson). Documented rationale per site in the working brief.Test plan
--allCategories Regression, 83 benchmarks, ~14 min) — 13 improvements, 4 unrelated noise-level regressionsDoc PR
Companion docs PR: nockawa/typhon-claude (same branch).
🤖 Generated with Claude Code