-
Notifications
You must be signed in to change notification settings - Fork 194
scxtop: Add perfetto trace analysis framework with systing support #3030
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
hodgesds
wants to merge
1
commit into
sched-ext:main
Choose a base branch
from
hodgesds:scxtop-mcp-perfetto-extended
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
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
3739641 to
b5abe13
Compare
Contributor
Author
|
Example claude session: |
3c11353 to
95099f2
Compare
Add comprehensive perfetto trace analysis infrastructure to scxtop, enabling deep scheduling analysis, outlier detection, and support for systing-generated traces with CompactSched format. Perfetto Analysis Framework: - 17 specialized analyzers across scheduling, I/O, IRQ, and power categories - Outlier detection with 4 statistical methods (IQR, MAD, StdDev, Percentile) - SQL-like query engine for flexible trace filtering and aggregation - Analyzer registry with automatic capability detection - Support for both FtraceEvent and TrackEvent formats Systing Trace Compatibility: - Parse CompactSched format with delta-encoded timestamps - Expand interned string tables for command names - Convert compact events to individual FtraceEvents - Verified with core analyzers on systing traces Memory-Aware Query Limits: - Automatic limit adjustment based on available system RAM - Conservative defaults for low-memory systems (< 4GB: 1K events) - Unlimited queries on high-memory systems (>= 64GB) - Smart defaults for event queries, timelines, and analysis results - User-configurable overrides via API parameters Documentation: - PERFETTO_ANALYZER_GUIDE.md - Comprehensive analyzer documentation - SYSTING_COMPATIBILITY.md - Systing trace format guide - WPROF_COMPATIBILITY_GUIDE.md - Wprof integration details - PERFETTO_ANALYZER_README.md - Quick start guide Testing: - Integration tests for all analyzer categories - Compatibility tests for systing and wprof traces - Outlier detection validation - Query engine functionality tests Signed-off-by: Daniel Hodges <[email protected]>
95099f2 to
96d7a45
Compare
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.
Add comprehensive perfetto trace analysis infrastructure to scxtop, enabling deep scheduling analysis, outlier detection, and support for systing-generated traces with CompactSched format.
Perfetto Analysis Framework:
Systing Trace Compatibility:
Memory-Aware Query Limits:
Documentation:
Testing: