Repository navigation
Query Profiling — definition export + execution analysis (closes #342) - #343
Merged
Merged
Conversation
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 #342 umbrella (Query Profiling — definition export + execution analysis). Lands all 9 phases (P0–P8) on a single branch, plus a small follow-up tightening the class-based-system marker.
Design doc:
claude/design/Profiler/11-query-definition-export.mdWhat's included
Sub-issues closed (all 9 already marked Done on the project board, acceptance checklists ticked / deferrals annotated in their bodies):
EcsQueryId) +[Caller*]source-location capture on the public Query APIQueryDefinitionDescribeEvent,QueryArgsEvent), extendedQueryPlanEvent,QuerySourceStringTablesection, v8 → v9 wire-format bumpPlanBuilderwith once-per-session dedup and[Optional]mask-gated wire fieldsQueryDefinitionDto,QueryExecutionDto, etc.)QueryCatalogBuilder+ 4 endpoints (/api/profiler/queries,…/{kind}/{id},…/executions,…/executions/{spanId}) + 2 bonus endpoints for cross-panel hand-offBonus polish (this branch only):
ISystemmarker interface implemented byQuerySystem/CallbackSystem/PipelineSystem— exposesName(set after Configure) andIndex(set after Build) so class-based systems can read their own runtime identity.SystemRegistration.SystemInstancetightened fromobject→ISystem;SystemSourceResolver.ResolveOverride(...)signature follows.OwnerSystemIdxfield added toQueryPlanEvent(mask 0x20) to attribute query executions to their owning system in multi-threaded mode, where the worker-thread parent-span chain doesn't reach the system span.Known deferrals (annotated per sub-issue)
SubtreeExecnode type. No current workload exercises polymorphic queries; design left in place for when one appears.QueryExecutionDtodoesn't carry execution-site source; panel falls back to "Triggered by: <SystemName>" (which already lands on the user'sExecuteoverride for class-based systems via BTree telemetry instrumentation #10's PDB resolver).A single polish-pass follow-up issue is the natural home for these — ~1 day total.
Verification
dotnet test test/Typhon.Engine.Tests/Typhon.Engine.Tests.csproj— 3587 passed, 33 skipped, 0 faileddotnet test test/Typhon.Workbench.Tests/Typhon.Workbench.Tests.csproj— 282 passed, 1 skipped, 0 failedTest plan
Doc PR
Companion docs PR: nockawa/typhon-claude (same branch).