✨ add UNSTABLE_useVueComponentTracker composable#4330
Draft
mormubis wants to merge 2 commits intoadlrb/vue-routerfrom
Draft
✨ add UNSTABLE_useVueComponentTracker composable#4330mormubis wants to merge 2 commits intoadlrb/vue-routerfrom
mormubis wants to merge 2 commits intoadlrb/vue-routerfrom
Conversation
|
✨ Fix all issues with BitsAI or with Cursor
|
5 tasks
87699a2 to
fd5fb81
Compare
290c50e to
339e6f1
Compare
Bundles Sizes Evolution
🚀 CPU Performance
🧠 Memory Performance
|
fd5fb81 to
9de709a
Compare
339e6f1 to
0a7ccdf
Compare
9de709a to
95cd15e
Compare
0a7ccdf to
ca26d99
Compare
95cd15e to
d87a4b9
Compare
ca26d99 to
db60fb6
Compare
aaa50ac to
90c0728
Compare
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.
Motivation
Fourth of five PRs (#4325, #4327, #4328 are the first three). Adds component-level performance tracking.
Changes
`UNSTABLE_useVueComponentTracker('MyComponent')` called inside `setup()` measures how long a component takes to mount and update using Vue's lifecycle hooks, reporting `vueComponentRender` duration vitals with `{ is_first_render: boolean, framework: 'vue' }`. Same vital name as `rum-react`'s `reactComponentRender` so cross-framework dashboards just work. Marked `UNSTABLE_` to match the React counterpart.
Test instructions
```bash
yarn test:unit --spec packages/rum-vue/src/domain/performance/useVueComponentTracker.spec.ts
```
Checklist