mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2026-07-16 00:40:39 +00:00
* Add startup performance tracing * Lazy initialize non-default tabs * Render install app entries incrementally * Defer and cache toggle status checks * Clean up runspace invocation ownership * Defer GUI runspace pool startup * Defer status taskbar asset rendering * Record final speed verification * Fix deferred install render timer callback * Add dispatcher smoke coverage for install rendering * Replace install render timer with dispatcher callbacks * Gate performance tracing behind compile switch * Clean up analyzer warnings in speed changes * Speed up runspace and tab initialization
16 lines
405 B
PowerShell
16 lines
405 B
PowerShell
function Stop-WinUtilPerformanceTrace {
|
|
param(
|
|
[string]$Name = "Startup trace complete"
|
|
)
|
|
|
|
if (-not (Test-WinUtilPerformanceTrace) -or $null -eq $sync -or -not $sync.ContainsKey("PerformanceTrace")) {
|
|
return
|
|
}
|
|
|
|
Write-WinUtilPerformanceCheckpoint -Name $Name
|
|
|
|
if ($null -ne $sync.PerformanceTrace.Stopwatch) {
|
|
$sync.PerformanceTrace.Stopwatch.Stop()
|
|
}
|
|
}
|