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

Fixes #4340: Introduces Performance Metrics logging #4462

Merged
merged 268 commits into from
Sep 20, 2022

Conversation

Sarthak2601
Copy link
Contributor

@Sarthak2601 Sarthak2601 commented Jul 23, 2022

Explanation

Fixes #4340
Introduces performance metrics logging at application startup and via background workers.

Things to note:

  1. Implementation of a ScreenName for each activity
  2. Tests for verifying that every activity's intent has the screen name value.
  3. Application startup logging at one place:
    I've moved apk size logging and storage usage logging from PerformanceMetricsLogger to the new ActivityLifecycleObserver. This means that the new observer is logging all app startup metrics from one place.

Essential Checklist

  • The PR title and explanation each start with "Fix #bugnum: " (If this PR fixes part of an issue, prefix the title with "Fix part of #bugnum: ...".)
  • Any changes to scripts/assets files have their rationale included in the PR explanation.
  • The PR follows the style guide.
  • The PR does not contain any unnecessary code changes from Android Studio (reference).
  • The PR is made from a branch that's not called "develop" and is up-to-date with "develop".
  • The PR is assigned to the appropriate reviewers (reference).

Copy link
Sponsor Member

@BenHenning BenHenning left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Sarthak2601! This is looking really good. Just had a few comments mainly on new code--PTAL.

@BenHenning BenHenning assigned Sarthak2601 and unassigned BenHenning Sep 16, 2022
Copy link
Sponsor Member

@BenHenning BenHenning left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Sarthak2601! Only have nits left, otherwise the PR LGTM. Feel free to self-resolve the remaining comments once addressed.

@BenHenning BenHenning assigned Sarthak2601 and unassigned BenHenning Sep 19, 2022
@oppiabot oppiabot bot added the PR: LGTM label Sep 19, 2022
@oppiabot
Copy link

oppiabot bot commented Sep 19, 2022

Hi @Sarthak2601, this PR is ready to be merged. Please address any remaining comments prior to merging, and feel free to merge this PR once the CI checks pass and you're happy with it. Thanks!

@Sarthak2601 Sarthak2601 merged commit 4f3ca53 into develop Sep 20, 2022
@Sarthak2601 Sarthak2601 deleted the performance-metrics-logging branch September 20, 2022 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add performance metrics logging during critical user journeys
3 participants