Skip to content
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

perf (cherry-pick): add tags to UI startup trace (#27550) #27727

Merged

Conversation

matthewwalsh0
Copy link
Member

@matthewwalsh0 matthewwalsh0 commented Oct 9, 2024

Description

Cherry-pick of #27550 for release 12.5.0.

Open in GitHub Codespaces

Related issues

Manual testing steps

Screenshots/Recordings

Before

After

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

matthewwalsh0 and others added 2 commits October 9, 2024 16:32
## **Description**

Add the following tags to the `UI Startup` trace to help identify
correlations in startup performance:

- `wallet.account_count`
  - Total number of all accounts in wallet.
- `wallet.nft_count`
- Total number of all NFTs in the wallet, across all accounts and
chains.
- `wallet.notification_count`
  - Total number of notifications in the wallet.
- `wallet.pending_approval`
- Approval type of the first pending approval. e.g. `transaction`,
`eth_signTypedData`
- `wallet.token_count`
- Total number of ERC-20 tokens in the wallet, across all chains and
accounts.
- `wallet.transaction_count`
- Total number of transactions currently in the wallet, across all
accounts, chains, and statuses.
- `wallet.unlocked`
- `true` or `false` based on if the wallet is currently locked and
requires a password.
- `wallet.ui_type`
  - Type of UI being loaded. e.g. `popup`, `notification`, `fullscreen`

Tags with a `number` value are Sentry measurements to allow querying
with greater than and less than logic.

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/27550?quickstart=1)

## **Related issues**

Fixes:
[#3379](MetaMask/MetaMask-planning#3379)
[#3273](MetaMask/MetaMask-planning#3273)

## **Manual testing steps**

## **Screenshots/Recordings**

### **Before**

### **After**

## **Pre-merge author checklist**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [ ] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [ ] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.

---------

Co-authored-by: Mark Stacey <markjstacey@gmail.com>
@matthewwalsh0 matthewwalsh0 requested a review from a team as a code owner October 9, 2024 15:48
@matthewwalsh0 matthewwalsh0 added team-tiger Tiger team (for tech debt reduction + performance improvements) release-12.5.0 Issue or pull request that will be included in release 12.5.0 labels Oct 9, 2024
@github-actions github-actions bot added the team-confirmations Push issues to confirmations team label Oct 9, 2024
@metamaskbot
Copy link
Collaborator

Builds ready [8121398]
Page Load Metrics (1963 ± 123 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint22627501787549263
domContentLoaded168025431930247118
load168525901963257123
domInteractive177040147

@matthewwalsh0 matthewwalsh0 merged commit 073c9fe into Version-v12.5.0 Oct 11, 2024
75 of 76 checks passed
@matthewwalsh0 matthewwalsh0 deleted the perf/cherry-pick-add-startup-trace-tags branch October 11, 2024 09:14
@github-actions github-actions bot locked and limited conversation to collaborators Oct 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-12.5.0 Issue or pull request that will be included in release 12.5.0 team-confirmations Push issues to confirmations team team-tiger Tiger team (for tech debt reduction + performance improvements)
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants