Vladimir Vukićević — Words
 

1 – init xpcom

2 – check for updates

3 – create hidden window

4 – (somewhere, create browser.xul window)

5 – main event loop

Event Loop Events

-1608358112[60a680]: > nsAppStartupNotifier::Observe app-startup
-1608358112[60a680]: -     0 ms (    0 ms total) - nsAppStartupNotifier::Observe app-startup [About to loop over services...]
-1608358112[60a680]: -    19 ms (   19 ms total) - nsAppStartupNotifier::Observe app-startup [service,@mozilla.org/browser/sessionstartup;1]
-1608358112[60a680]: -     3 ms (   22 ms total) - nsAppStartupNotifier::Observe app-startup [service,@mozilla.org/browser/browserglue;1]
-1608358112[60a680]: -     2 ms (   24 ms total) - nsAppStartupNotifier::Observe app-startup [service,@mozilla.org/privatebrowsing;1]
-1608358112[60a680]: -     0 ms (   24 ms total) - nsAppStartupNotifier::Observe app-startup [service,@mozilla.org/scriptsecuritymanager;1]
-1608358112[60a680]: -     6 ms (   31 ms total) - nsAppStartupNotifier::Observe app-startup [service,@mozilla.org/updates/update-service;1]
-1608358112[60a680]: -     2 ms (   33 ms total) - nsAppStartupNotifier::Observe app-startup [service,@mozilla.org/embeddor.implemented/web-content-handler-registrar;1]
-1608358112[60a680]: -     1 ms (   35 ms total) - nsAppStartupNotifier::Observe app-startup [service,@mozilla.org/rdf/datasource;1?name=window-mediator]
-1608358112[60a680]: -    18 ms (   53 ms total) - nsAppStartupNotifier::Observe app-startup [service,@mozilla.org/appshell/trytoclose;1]
-1608358112[60a680]: <     0 ms (   53 ms total) - nsAppStartupNotifier::Observe app-startup
-1339920384[a35af0]: *-   137 ms (  137 ms total) - virtual nsresult nsThread::ProcessNextEvent(PRBool, PRBool*) [Runnable: 0x00a35594]
-1608358112[60a680]: *-    26 ms (   26 ms total) - virtual nsresult nsThread::ProcessNextEvent(PRBool, PRBool*) [Runnable: 0x00a35a70]
-1339277312[1c30ec40]: *-    19 ms (   19 ms total) - virtual nsresult nsThread::ProcessNextEvent(PRBool, PRBool*) [Runnable: 0x00a35594]
-1608358112[60a680]: *-    14 ms (   14 ms total) - virtual nsresult nsThread::ProcessNextEvent(PRBool, PRBool*) [Runnable: 0x00aaa9e0]
-1339920384[a35af0]: *-    28 ms (   28 ms total) - virtual nsresult nsThread::ProcessNextEvent(PRBool, PRBool*) [Runnable: 0x00ac54f0]
-1608358112[60a680]: > PresShell::InitialReflow (0x0) chrome://browser/content/hiddenWindow.xul
-1608358112[60a680]: <    16 ms (   16 ms total) - PresShell::InitialReflow (0x0) chrome://browser/content/hiddenWindow.xul
-1608358112[60a680]: *-    17 ms (   17 ms total) - virtual nsresult nsThread::ProcessNextEvent(PRBool, PRBool*) [Runnable: 0x1c3a81c0]
-1608358112[60a680]: *-    25 ms (   25 ms total) - virtual nsresult nsThread::ProcessNextEvent(PRBool, PRBool*) [Runnable: 0x1c381900]
-1608358112[60a680]: *-    26 ms (   26 ms total) - virtual nsresult nsThread::ProcessNextEvent(PRBool, PRBool*) [Runnable: 0x1c30e9b0]
-1608358112[60a680]: > PresShell::InitialReflow (0x0) chrome://browser/content/browser.xul
-1338744832[1c380ff0]: *-    52 ms (   52 ms total) - virtual nsresult nsThread::ProcessNextEvent(PRBool, PRBool*) [Runnable: 0x00a35594]
-1339920384[1c743c40]: *-    96 ms (   96 ms total) - virtual nsresult nsThread::ProcessNextEvent(PRBool, PRBool*) [Runnable: 0x00a35594]
-1608358112[60a680]: <   133 ms (  133 ms total) - PresShell::InitialReflow (0x0) chrome://browser/content/browser.xul
-1608358112[60a680]: *-   135 ms (  135 ms total) - virtual nsresult nsThread::ProcessNextEvent(PRBool, PRBool*) [Runnable: 0x1c3b10d0]
-- nonBrowserWindowStartup: 5
-1608358112[60a680]: *-    31 ms (   31 ms total) - virtual nsresult nsThread::ProcessNextEvent(PRBool, PRBool*) [Runnable: 0x1c704d10]
-1338744832[1c380ff0]: *-   152 ms (  152 ms total) - virtual nsresult nsThread::ProcessNextEvent(PRBool, PRBool*) [Runnable: 0x1c879910]
-1608358112[60a680]: *    36 ms (   36 ms total) - void nsTimerImpl::Fire()
-1608358112[60a680]: *-    36 ms (   36 ms total) - virtual nsresult nsThread::ProcessNextEvent(PRBool, PRBool*) [Runnable: 0x1c7f3190]
-1339920384[1c743c40]: *-   109 ms (  109 ms total) - virtual nsresult nsThread::ProcessNextEvent(PRBool, PRBool*) [Runnable: 0x1c8248b0]
-1339277312[1c825550]: *-   108 ms (  108 ms total) - virtual nsresult nsThread::ProcessNextEvent(PRBool, PRBool*) [Runnable: 0x1c827dc0]
-1338212352[1c8291e0]: *-   110 ms (  110 ms total) - virtual nsresult nsThread::ProcessNextEvent(PRBool, PRBool*) [Runnable: 0x1c833ff0]
-1608358112[60a680]: > PresShell::InitialReflow (23100x0) about:blank
-1608358112[60a680]: <     1 ms (    1 ms total) - PresShell::InitialReflow (23100x0) about:blank
-- nonBrowserWindowDelayedStartup: 2
-1608358112[60a680]: *-    19 ms (   19 ms total) - virtual nsresult nsThread::ProcessNextEvent(PRBool, PRBool*) [Runnable: 0x1c8282c0]
-1608358112[60a680]: *-    19 ms (   19 ms total) - virtual nsresult nsThread::ProcessNextEvent(PRBool, PRBool*) [Runnable: 0x1c8238b0]
-1608358112[60a680]: *-    73 ms (   73 ms total) - virtual nsresult nsThread::ProcessNextEvent(PRBool, PRBool*) [Runnable: 0x1c743e00]
-- BrowserStartup: 18
-1337679872[1c838bc0]: *-   154 ms (  154 ms total) - virtual nsresult nsThread::ProcessNextEvent(PRBool, PRBool*) [Runnable: 0x00a35594]
-1608358112[60a680]: *-    89 ms (   89 ms total) - virtual nsresult nsThread::ProcessNextEvent(PRBool, PRBool*) [Runnable: 0x1c8c8380]
-1608358112[60a680]: > PresShell::InitialReflow (56400x62220) file:///Users/vladimir/tmp/startup.html
-1608358112[60a680]: <     1 ms (    1 ms total) - PresShell::InitialReflow (56400x62220) file:///Users/vladimir/tmp/startup.html
TIME 1248484974318
-----------

Timers

  • mozJSComponentLoader.cpp:1035 -- CloseFastLoad, kFastLoadWriteDelay = 10s, ONE_SHOT
  • nsUpdateService.js:2737 - http://mxr.mozilla.org/mozilla-central/source/toolkit/mozapps/update/src/nsUpdateService.js.in#2866 -- REPEATING_SLACK, 600000 (600s, 10 min)
  • gfxQuartzFontCache.mm:471 - LoaderTimerCallback, aDelay=8000, TYPE_REPEATING_SLACK
  • xpfe/appshell/src/nsWebShellWindow.cpp:492 - SetPersistenceTimer - 500 ms (!) .. bump this to 5000ms
  • content/events/src/nsEventStateManager.cpp:639 - gUserInteractionTimerCallback - 5000 ms (notify user-interaction-{active,inactive})
  • nsJSEnvironment.cpp:142 -- GC -- first, so 10000ms
  • nsRecyclingAllocator -- recycle -- 900000 -- 15 min
    • -- wtf is nsRecyclingAllocator?  it's only used by dlldeps.cpp:168, and nsZipArchive.cpp:195
  • nsHttpHandler.cpp:328 -- StartPruneDeadConnectionsTimer - 15*1000 - 15s
  • **** nsUpdateService::checkForUpdates! - XHR
  • nsContentSink.cpp:1508 -- nsContentSink::WillInterruptImpl -- 119ms?
  • mozJSComponentLoader.cpp:1035 -- CloseFastLoad, kFastLoadWriteDelay = 10s, ONE_SHOT
  • nsPresShell.cpp:2781 - PaintSuppressionCallback - 250 ms (!) -- chrome://browser/content/hiddenWindow.xul
  • borwser.js:nonBrowserWindowStartup -- nonBrowserWindowDelayedStartup, 0 !!!
  • imgLoader::LoadImage, imgLoader.cpp:1352, PutIntoCache, nsExpirationTracker, 10s
  • mozJSComponentLoader.cpp:1035 -- CloseFastLoad, kFastLoadWriteDelay = 10s, ONE_SHOT
  • findbar.xml:387 (404) -- 0ms -- FAYT keypress listener attached thing?  aSelf.browser = aSelf.browser ?
  • nsNavHistory::IdleTimerCallback (1011) -- 300000 (5min)
  • toolbar.xml:399 -- _setInactiveAsync - 0ms -- looking at autohide and calling setInactive or not.
  • search.xml:541 and 111 -- initialize/init() - 0 -- lots of work
  • nsPresShell.cpp:2781 - PaintSuppressionCallback - 250 ms (!) -- chrome://browser/content/browser.xul
  • nsJSEnvironment.cpp:3693 - GC delay, !first, 4000ms (for browser.xul)
  • imgContainer.cpp:1257 - sDiscardTimerCallback, 15s
    imgContainer.cpp:1257 - sDiscardTimerCallback, 15s
    imgContainer.cpp:1257 - sDiscardTimerCallback, 15s
    ...
    • Use a discard group? expiration tracker?
  • nsThebesFontMetrics.cpp:344, TextRun ExpirationTracker, 10s
  • mozJSComponentLoader.cpp:1035 -- CloseFastLoad, kFastLoadWriteDelay = 10s, ONE_SHOT
  • imgLoader::LoadImage, imgLoader.cpp:1352, PutIntoCache, nsExpirationTracker, 10s
  • textbox.xml:178 - 100ms -- _updateVisibleText  (from search.xml:updateDisplay) -- this emptytextdelay thing?
  • nsTextFrameThebes.cpp:440 ExpirationTracker, 10s
  • imgContainer.cpp:1257 - sDiscardTimerCallback, 15s, ....
  • nsContentSink.cpp:1508 -- nsContentSink::WillInterruptImpl -- 119ms?
  • nsContentSink.cpp:1508 -- nsContentSink::WillInterruptImpl -- 119ms?
  • nsPresShell.cpp:2781 - PaintSuppressionCallback - 250 ms (!) -- chrome://browser/content/browser.xul