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 timing analytics for debugger page load #3346

Merged

Conversation

kenzieschmoll
Copy link
Member

No description provided.

@kenzieschmoll kenzieschmoll marked this pull request as ready for review September 8, 2021 22:40
Copy link
Contributor

@jacob314 jacob314 left a comment

Choose a reason for hiding this comment

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

lgtm once we also dispatch this an analytics event to track timing.

@kenzieschmoll kenzieschmoll changed the title Add _shownFirstScript marker to debugger codeview Add timing analytics for debugger page load Sep 8, 2021
@@ -9,6 +9,7 @@ import 'package:provider/provider.dart';
import 'package:vm_service/vm_service.dart';

import '../analytics/analytics.dart' as ga;
import '../analytics/constants.dart' as analytics_constants;
Copy link
Contributor

Choose a reason for hiding this comment

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

probably not following it elsewhere in devtools but I beleive this should be analyticsConstants or constants not analytics_constants although maybe I'm missing something in the style guide.

Copy link
Member Author

Choose a reason for hiding this comment

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

underscores is per the style guide. See https://dart-lang.github.io/linter/lints/library_prefixes.html, which is triggered if you name as analyticsConstants

parsedScript != null &&
!_shownFirstScript) {
ga.timeEnd(DebuggerScreen.id, analytics_constants.pageReady);
// TODO(annagrin): mark end of IPL timing for debugger page here.
Copy link
Contributor

Choose a reason for hiding this comment

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

Fyi @annagrin to dispatch an event dwds can listen for as well.

Copy link
Contributor

Choose a reason for hiding this comment

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

I am adding ext.dwds.sendEvent service extension to dwds, it will expect an event { 'type': 'DevtoolsReady', 'payload': {} } .

See dart-lang/webdev#1404

Copy link
Contributor

@jacob314 jacob314 left a comment

Choose a reason for hiding this comment

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

lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants