[PR #15206] [MERGED] Fix AppInitialized latency metric #30502

Open
opened 2026-01-31 09:41:14 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/15206
Author: @lhecker
Created: 4/19/2023
Status: Merged
Merged: 4/25/2023
Merged by: @microsoft-github-policy-service[bot]

Base: mainHead: dev/lhecker/fix-app-initialized-metric


📝 Commits (2)

  • a248d8b Fix AppInitialized latency metric
  • c8f4f6f Merge remote-tracking branch 'origin/main' into dev/lhecker/fix-app-initialized-metric

📊 Changes

3 files changed (+51 additions, -67 deletions)

View changed files

📝 src/cascadia/TerminalApp/AppLogic.cpp (+42 -60)
📝 src/cascadia/TerminalApp/AppLogic.h (+2 -1)
📝 src/cascadia/TerminalApp/TerminalWindow.cpp (+7 -6)

📄 Description

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 task
into the Initialized callback as well, because why not.

Validation Steps Performed

  • Breakpoint into "AppInitialized" - latency is now correct

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/15206 **Author:** [@lhecker](https://github.com/lhecker) **Created:** 4/19/2023 **Status:** ✅ Merged **Merged:** 4/25/2023 **Merged by:** [@microsoft-github-policy-service[bot]](https://github.com/apps/microsoft-github-policy-service) **Base:** `main` ← **Head:** `dev/lhecker/fix-app-initialized-metric` --- ### 📝 Commits (2) - [`a248d8b`](https://github.com/microsoft/terminal/commit/a248d8bf7cbfec4a77278eca6c0ef594411f9150) Fix AppInitialized latency metric - [`c8f4f6f`](https://github.com/microsoft/terminal/commit/c8f4f6fb9a2e917a21e2439f9379d50627ab3d90) Merge remote-tracking branch 'origin/main' into dev/lhecker/fix-app-initialized-metric ### 📊 Changes **3 files changed** (+51 additions, -67 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalApp/AppLogic.cpp` (+42 -60) 📝 `src/cascadia/TerminalApp/AppLogic.h` (+2 -1) 📝 `src/cascadia/TerminalApp/TerminalWindow.cpp` (+7 -6) </details> ### 📄 Description 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` task into the `Initialized` callback as well, because why not. ## Validation Steps Performed * Breakpoint into "AppInitialized" - latency is now correct ✅ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:41:14 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#30502