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
Add timing analytics for debugger page load #3346
Conversation
There was a problem hiding this 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.
@@ -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; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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': {} }
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No description provided.