Closed 29axe closed 3 years ago
On a fresh login, applications take time to start up, PowerToys Run is no different. We may be able to improve startup time but it will never be instant.
In the logs folder %localappdata%\Microsoft\PowerToys\PowerToys Run\Logs
, on a fresh boot of PowerToys, you should see a line like this Message: Startup cost <4463ms>
that will tell you how long we take from cold start to active. Can you share that
In the logs folder
%localappdata%\Microsoft\PowerToys\PowerToys Run\Logs
, on a fresh boot of PowerToys, you should see a line like thisMessage: Startup cost <4463ms>
that will tell you how long we take from cold start to active. Can you share that
I don't have such message in any of the log files. Should I enable some advanced logging option?
Do a full quit of powertoys and restart it. That will cycle all the utilities.
Tried it but it doesn't log this information. I also tried to reboot.
Can you share the log file? I may be able to parse it out.
I sent you the log file following your issues guidelines. I also updated to the latest version today. I'll send another log file if I see anything interesting.
I installed v0.23.0 and after a reboot I see now the startup cost:
2020-10-06 08:27:01.0672|INFO|Wox.Infrastructure.Stopwatch.Normal| Message: |App.OnStartup|Startup cost <20305ms> Area: Wox.Infrastructure.Stopwatch.Normal Source Path: S:\src\modules\launcher\Wox.Infrastructure\Stopwatch.cs::40
Can I get that file?
I thought you would receive it. I sent it to the email address for dumps/logs provided in the 'add issue' template. Anyway, here is a recent anonymized log:
2020-10-07 07:58:27.3542|INFO|PowerLauncher.App.OnStartup| Message: Begin PowerToys Run startup ---------------------------------------------------- Area: PowerLauncher.App.OnStartup Source Path: S:\src\modules\launcher\PowerLauncher\App.xaml.cs::85
2020-10-07 07:58:27.3769|INFO|PowerLauncher.App.OnStartup| Message: Runtime info: Version: 0.23.0.0 OS Version: Microsoft Windows NT 10.0.19041.0 IntPtr Length: 8 x64: True Area: PowerLauncher.App.OnStartup Source Path: S:\src\modules\launcher\PowerLauncher\App.xaml.cs::86
2020-10-07 07:58:27.8731|ERROR|Wox.Infrastructure.Image.ImageLoader.LoadInternal| Message: Failed to get thumbnail for C:\Users\USER\Documents\CLOUD-STORAGE\Y\Z\logo.ai Area: Wox.Infrastructure.Image.ImageLoader.LoadInternal Source Path: S:\src\modules\launcher\Wox.Infrastructure\Image\ImageLoader.cs::193
2020-10-07 07:58:27.8884|ERROR|Wox.Infrastructure.Image.ImageLoader.LoadInternal|-------------------------- Begin exception -------------------------- 2020-10-07 07:58:27.9196|ERROR|Wox.Infrastructure.Image.ImageLoader.LoadInternal| Message: Failed to get thumbnail for C:\Users\USER\Documents\CLOUD-STORAGE\Y\Z\logo.ai 2020-10-07 07:58:28.2323|ERROR|Wox.Infrastructure.Image.ImageLoader.LoadInternal| Exception full name:
on this instance, startup time was 10 seconds, prior was 20. Looking at this, almost all the time is actually spent in querying / searching for Win32 apps and getting the icons and names.
We can see what we can do about improving the perf here but this isn't something i would put as high priority since other apps don't instantly startup as well and we're competing for CPU cycles on start.
I'm going to create a new issue and basically call it "improve Win32 1start up speed for PT Run"
ℹ Computer information
📝 Provide detailed reproduction steps (if any)
✔️ Expected result
Open PowerToys Run right after session opens
❌ Actual result
Opens default alt + space menu at the top corner of the current window (restore, collapse, close alt+f4, ...) PowerToys run is available after some time.
The thing is that PowerToys starts from scheduler task and is starting after all other startup apps. Is there a way to start it with system instead? or with a higher priority?
📷 Screenshots