feat: add profile diff command#39
Conversation
🦋 Changeset detectedLatest commit: cf0977a The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
@kacper-mikolajczak, I've merged #38 with some fixes so the export works correctly with React DevTools (flame graphs, durations, etc.). Could you rebase this branch on the latest main? Let me know if you run into any conflicts. |
Compare two exported profiling JSON files to identify regressions, improvements, new and removed components. - New CLI command: profile diff <before.json> <after.json> [--limit N] - No daemon required - operates purely on exported files - Matches components by displayName, computes avg duration deltas - 5% threshold filters noise from insignificant changes Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
8587904 to
ca44587
Compare
|
@piotrski Rebased - looks like we are good to go ✅ |
|
Hey @kacper-mikolajczak, I've merged #38 with some fixes so the export works correctly with React DevTools (flame graphs, durations, etc.). Could you rebase this branch on the latest |
- Use Map lookup instead of linear scan for self durations - Clarify before/after order in help text - Add --threshold flag to configure regression sensitivity (default 5%) - Show clear error messages when export files can't be read - Show actual threshold value in "no changes" message - Fix constant naming convention (DEFAULT_THRESHOLD_PCT) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Sure, I will check that in the latest version 👍 |
Summary
profile diff <before.json> <after.json>CLI command to compare two profiling exportsprofile exportdisplayName, computes avg duration and render count deltasBuilds on #38 (
profile export).Usage
Example output
Test plan