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

Add editor session startup time #11411

Merged
merged 3 commits into from
Mar 11, 2020
Merged

Add editor session startup time #11411

merged 3 commits into from
Mar 11, 2020

Conversation

koke
Copy link
Member

@koke koke commented Mar 9, 2020

Adds startup time to the editor_session_start event.

Fixes wordpress-mobile/gutenberg-mobile#1988
iOS PR: wordpress-mobile/WordPress-iOS#13605

I do like one Android PR a year on average, so please let me know if there's a better way to do this 😅

To test:

Set a breakpoint or some extra logging on AnalyticsTracker.track(), and ensure the startup_time_ms gets added to editor_session_start and it reflects the actual startup time of the editor.

PR submission checklist:

  • I have considered adding unit tests where possible.
  • I have considered adding accessibility improvements for my changes.
  • I have considered if this change warrants user-facing release notes and have added them to RELEASE-NOTES.txt if necessary.

@koke koke added this to the 14.4 milestone Mar 9, 2020
@koke koke requested a review from maxme March 9, 2020 15:44
@koke koke force-pushed the add/editor_session_startup_time branch from a92f1ce to 68c042b Compare March 9, 2020 15:46
@koke
Copy link
Member Author

koke commented Mar 9, 2020

Sorry for the force-push, I realized my develop was 1,000+ commits behind 😱, so it seemed cleaner than a merge

@peril-wordpress-mobile
Copy link

peril-wordpress-mobile bot commented Mar 9, 2020

You can test the changes on this Pull Request by downloading the APK here.

@@ -2669,6 +2669,10 @@ private void onEditorFinalTouchesBeforeShowing() {

@Override
public void onEditorFragmentContentReady(ArrayList<Object> unsupportedBlocksList) {
// Note that this method is also used to track startup performance
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@oguzkocer
Copy link
Contributor

We're freezing 14.4 today, so this PR is being bumped to 14.5. If you'd like it to ship with 14.4, please merge it into release/14.4 and ping me – I'll be happy to cut a new beta release.

@oguzkocer oguzkocer modified the milestones: 14.4, 14.5 Mar 9, 2020
@maxme
Copy link
Contributor

maxme commented Mar 11, 2020

Thanks for taking care of that @koke - good job on your 2020 Android patch ;)

:shipit:

@maxme maxme self-requested a review March 11, 2020 15:26
@koke koke merged commit 2f1c87b into develop Mar 11, 2020
@koke koke deleted the add/editor_session_startup_time branch March 11, 2020 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Instrument editor startup performance
3 participants