view
Tweet
hifi: #19319 Accurately time the startup of the app

Right now, we time startup of the interface app and report in the title bar, ex: "Interface, 4.6 seconds"

But... there is a long delay before the time starts, presumably because the app still has to do a lot before it can exist.

So... figure out a way to accurately time the delay from double-clicking the app to the render screen being displayed and controls active. Probably the way to do this is with a tiny app that starts the main app and passes it a startup time, or something like that.

Comments & Activity

  • 5 yrs, 11 mnths ago

    Philip added item #19319: Accurately time the startup of the app. Status set to Bidding .
  • Can anyone verify that this is still a problem? App startup time measurements seem to be working accurately for me by my own measurements (titlebar says 1.9 seconds from time of clicking on the app to startup, I'm measuring something similar).
  • 5 yrs, 11 mnths ago

    Geenz posted a comment on issue #19319: Accurately time the startup of the app
  • Are you using a debug or release build, and are you launching from within xcode? Perhaps I am getting confused and the delay is in fact due only to the dev environment.
  • 5 yrs, 11 mnths ago

    Philip posted a comment on issue #19319: Accurately time the startup of the app
  • Actually i'm seeing weird behavior in the current code where I am not getting the time report until I drag the window and then I get a very small number.
  • That's weird. I'll investigate a bit, see if I can find any failure cases where the startup time could be wrong. As far as I can tell, the order of events to Application::Application shouldn't cause a delay in when the timing is being sampled.
  • Alright, I'm reproducing your problem regarding the startup time not showing up in the titlebar. It's happening when I run it outside of the IDE.
  • Hm. It's really odd that the call to setWindowTitle isn't working until the window is resized outside of the IDE. A Qt bug maybe? Maybe there's a better place for that branch somewhere...
  • Alright, seem to have tracked it down. The problem is trying to set the title in paintGL() on a non-IDE build for whatever reason breaks. Moving it to the end of initializeGL() seems to work, but before doing that, is there a good reason for it not to be in initializeGL()?
  • 5 yrs, 11 mnths ago

    Philip posted a comment on issue #19319: Accurately time the startup of the app
  • 5 yrs, 11 mnths ago

    Geenz posted a comment on issue #19319: Accurately time the startup of the app
  • 5 yrs, 11 mnths ago

    Geenz posted a comment on issue #19319: Accurately time the startup of the app
  • 5 yrs, 11 mnths ago

    Geenz posted a comment on issue #19319: Accurately time the startup of the app
  • 5 yrs, 11 mnths ago

    Geenz posted a comment on issue #19319: Accurately time the startup of the app
  • 5 yrs, 11 mnths ago

    regardless though, I've found a work around to a bug discovered as part of #19319, don't set the titlebar in piantGL()
  • 5 yrs, 11 mnths ago

    A bid was placed on item #19319: Accurately time the startup of the app.
  • 5 yrs, 11 mnths ago

    Philip accepted 60.00 from Geenz on item #19319: Accurately time the startup of the app. Status set to Working.
  • Geenz - moving it out of paintGL sounds fine, my only requirement is that the clock time (measured on a stopwatch) between double clicking on the app icon and seeing the world rendered in the app matches the number shown in the title bar.
  • 5 yrs, 11 mnths ago

    Philip posted a comment on issue #19319: Accurately time the startup of the app
  • 5 yrs, 11 mnths ago

    Geenz updated item #19319: Accurately time the startup of the app. Status set to Review.
  • 5 yrs, 11 mnths ago

    Geenz updated item #19319: Accurately time the startup of the app. sandbox url : https://github.com/Geenz/hifi/tree/19319 Status set to Functional.
  • Thanks Geenz. Yes it seems much closer to the correct timing.
  • 5 yrs, 11 mnths ago

    Philip posted a comment on issue #19319: Accurately time the startup of the app
  • 5 yrs, 11 mnths ago

    Philip updated item #19319: Accurately time the startup of the app. Status set to Done.
Labels Saved!

Bids

Login to bid
Who Amount Done in ...
*name hidden*$ ***1 hour