Repository navigation
Conversation
Owner
Author
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.
📝 Description
Part of the #198–#205 dependency stack, based on
fix/issue-203-chain-67e26f4(stacked on #203). Merge in issue order; after the parent merges, retarget this PR tomain.consume=Noneretains fetchall.QueryTimeoutError/ CLIQUERY_TIMEOUT(previously normalized incorrectly toQueryExecutionError).callstack_analysislegacyalloc_countcounts ALL real non-NULL stack-bearing actions (not allocation-only); missing/literal/empty stay distinct; weighted stats over full identity.Commits in this PR:
a0f9738fix: implement dataset-global query semantics ([FEATURE] 整份分片数据集的峰值、生命周期与堆栈聚合语义 #204)32 files changed, 1727 insertions(+), 266 deletions(-):
README.md
README_zh.md
docs/en/querying.md
docs/en/sharded-snapshotdb.md
docs/zh/querying.md
docs/zh/sharded-snapshotdb.md
src/pt_snap_cli/cli.py
src/pt_snap_cli/cli_reports.py
src/pt_snap_cli/core/dataset_attribution.py
src/pt_snap_cli/core/dataset_global.py
src/pt_snap_cli/core/dataset_resolver.py
src/pt_snap_cli/core/dataset_sources.py
src/pt_snap_cli/core/dataset_support.py
src/pt_snap_cli/core/models.py
src/pt_snap_cli/core/query_service.py
src/pt_snap_cli/core/report_service.py
src/pt_snap_cli/query/executor.py
src/pt_snap_cli/query/registry.py
src/pt_snap_cli/query/templates/basic/block.yaml
src/pt_snap_cli/query/templates/business/leak_detection.yaml
src/pt_snap_cli/query/templates/statistical/allocator_gap.yaml
src/pt_snap_cli/query/templates/statistical/callstack_analysis.yaml
src/pt_snap_cli/query/templates/statistical/memory_peak.yaml
tests/core/test_dataset_attribution.py
tests/core/test_dataset_global.py
tests/query/test_callstack_schema_compat.py
tests/query/test_registry.py
tests/query/test_template_semantics.py
tests/test_contract_cli_api.py
tests/test_dataset_focus.py
tests/test_fragmentation_query_scope.py
tests/test_native_dataset.py
🔗 Related Issue
Refs #204 — deliberately no auto-closing keywords; the issue stays open because GUI/C++/installed-wheel acceptance is human-deferred.
Review comment: #204 (comment)
🧪 Testing
Real global query/report runs exercised locally, including timeouts, paging, budget exhaustion and the authentic-original differential (3219 lifecycles, 325 terminal candidates, 60 all-action groups, 4 ranges, 16 points, 3 metric reports).
✅ Checklist
"No new warnings" keeps the pre-existing external pytest-asyncio startup deprecation and existing informational type warnings unchanged rather than hidden;
ResourceWarning/PytestUnraisableExceptionWarningremain errors.Snapshot Runtime Provenance
No snapshot runtime files change in this PR, so no provenance declaration is required.
📸 Screenshots (if applicable)
Not applicable — no user-interface or C++ changes in this PR.
📋 Additional Notes
main; this stacked PR runs CI once it is retargeted tomainafter [FEATURE] 数据集按事件查询与跨片 alloc/free、堆栈来源解析 #203 merges.Head SHA:
a0f9738fedaa31b7c3929f5884c48df74616a75a; branchfix/issue-204-chain-67e26f4. All checks above were recorded locally on this exact head; the C++/GUI consumer and installed-wheel profile remain untested and unclaimed.