-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
Fix AppInitialized latency metric #15206
Fix AppInitialized latency metric #15206
Conversation
68a5778
to
09d7cdd
Compare
@@ -264,6 +263,8 @@ namespace winrt::TerminalApp::implementation | |||
{ | |||
_root->SetFullscreen(true); | |||
} | |||
|
|||
AppLogic::Current()->NotifyRootInitialized(); |
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.
@zadjii-msft Is this the right way to get a handle to AppLogic
? BTW given that App::Logic()
returns a singleton, should we maybe remove static AppLogic logic;
from there and move it into AppLogic::Current()
? If there's a singleton, I feel like it's more idiomatic to create it inside the class of the singleton.
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.
That's what I'd do yea
09d7cdd
to
413963d
Compare
649f89b
to
082aef0
Compare
413963d
to
c599c02
Compare
c599c02
to
a248d8b
Compare
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
@lhecker FYI looks like you have a little merge conflict you've gotta fix before merging this |
…nitialized-metric
The AppInitialized latency metric logs how long the application needs
to initialize the UI. 5b434dc broke this metric, because it was now
executing the code outside of the
Initialized
callback.It's the difference between a "latency" of ~50ms and ~350ms.
As an added bonus it moves the
_ApplyStartupTaskStateChange
taskinto the
Initialized
callback as well, because why not.Validation Steps Performed