Closed Bug 108060 Opened 25 years ago Closed 24 years ago

Startup: 3 WEBSHELL invocations take up 31.5% of the total time.

Categories

(SeaMonkey :: MailNews: Message Display, defect)

x86
Windows NT
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED WONTFIX
mozilla0.9.8

People

(Reporter: cavin, Assigned: cavin)

Details

Attachments

(1 file)

This is filed against mail startup performance. Scenario: Start up browser and then click on Tasks|Mail & Newsgroups to start up mail program. The test profile is a POP account with 1000 msgs in the inbox. As soon as you select the Tasks|Mail & Newsgroups menu item, you can immediately see the following in the debug cmd window (which indicates that startup takes place right away, or at least there's no major delay): WEBSHELL+ = 5 Then it takes another 2+ seconds to finish the following (two line) display: WEBSHELL+ = 6 WEBSHELL+ = 7 After this point a few updateCommands calls are issued and the inbox is loaded and the login dialog shows up. Here is my own event log for the startup process: WEBSHELL+ = 5 WEBSHELL+ = 6 WEBSHELL+ = 7 Doing UpdateCommands("focus") *** In JS FocusRingUpdate_Mail(), calling updateCommands('mail-toolbar') Doing UpdateCommands("mail-toolbar") UpdateCommands takes: 150 UpdateCommands takes: 310 Doing UpdateCommands("focus") UpdateCommands takes: 28 Doing UpdateCommands("focus") UpdateCommands takes: 45 Doing UpdateCommands("focus") UpdateCommands takes: 29 Doing UpdateCommands("focus") UpdateCommands takes: 37 In ChangeFolderByURI uri = mailbox://qatest33@nsmail-1/Inbox sortType = 18 *** JS Performance check #6: time used = 20 It takes 269 milliseconds for nsMsgLocalMailFolder::UpdateFolder() to finish *** JS Performance check #7: time used = 290 Doing UpdateCommands("mail-toolbar") UpdateCommands takes: 103 *** JS Performance check #11: time used = 410 mailbox://qatest33@nsmail-1...skipping, already opened Doing UpdateCommands("focus") UpdateCommands takes: 29 Doing UpdateCommands("focus") UpdateCommands takes: 38 Opening file 2303615.s failed WEBSHELL+ = 8 Doing UpdateCommands("focus") UpdateCommands takes: 0 Doing UpdateCommands("focus") UpdateCommands takes: 0 Here are the four measurements I took to conclude the behavior: WEBSHELL time/Total time 1. 2.17/6.89 = 31.4% 2. 2.32/7.27 = 31.9% 3. 2.20/6.97 = 31.5% 4. 2.16/6.95 = 31.1% These numbers are calculated from the log file using the mozilla timing macros and they are pretty consistent. Also from (one of) the log we can draw an event timeline showing the time spent on various tasks: 35.742 38.066 41.600 43.012 ^ ^ ^ ^ ------+-----------+----------------+---------+------- A (2.323) B (3.535) C (1.412) D where: Point #A - When "WEBSHELL+ = 5" shows up. Point #B - When "WEBSHELL+ = 7" finishes (elapsed time = 2.323). Point #C - When loading POP inbox (ie, nsMsgLocalMailFolder::UpdateFolder) finishes (elapsed time = 3.535). Point #D - When login dialog shows up (elapsed time = 1.412). I'll have to look further into each step to see where the time was spent the most. I'll also attach the log file I used to draw the above timeline for reference purpose. Timer "main1" is the one I used in the log file to record events A, B and C.
Stack traces when nsWebShell::nsWebShell() is invoked. ------------------------------------------------------------------- Stack trace when "WEBSHELL+ = 5" is displayed: nsWebShell::nsWebShell() line 201 nsWebShellConstructor(nsISupports * 0x00000000, const nsID & {...}, void * * 0x0012ca88) line 28 + 66 bytes nsGenericFactory::CreateInstance(nsGenericFactory * const 0x0117d2d0, nsISupports * 0x00000000, const nsID & {...}, void * * 0x0012ca88) line 74 + 21 bytes nsComponentManagerImpl::CreateInstance(nsComponentManagerImpl * const 0x00956f50, const nsID & {...}, nsISupports * 0x00000000, const nsID & {...}, void * * 0x0012ca88) line 1616 + 24 bytes nsComponentManager::CreateInstance(const nsID & {...}, nsISupports * 0x00000000, const nsID & {...}, void * * 0x0012ca88) line 3470 nsCreateInstanceByCID::operator()(const nsID & {...}, void * * 0x0012ca88) line 138 + 27 bytes nsCOMPtr<nsIDocShell>::assign_from_helper(const nsCOMPtr_helper & {...}, const nsID & {...}) line 972 + 18 bytes nsCOMPtr<nsIDocShell>::operator=(const nsCOMPtr_helper & {...}) line 604 nsWebShellWindow::Initialize(nsIXULWindow * 0x00000000, nsIAppShell * 0x010c4f10, nsIURI * 0x00000000, int 0, int 0, unsigned int 5, int 1, int 1, int 0, nsWidgetInitData & {...}) line 306 nsAppShellService::JustCreateTopWindow(nsAppShellService * const 0x010c4870, nsIXULWindow * 0x00000000, nsIURI * 0x00000000, int 0, int 0, unsigned int 2147485246, int 1, int 1, int 0, nsIXULWindow * * 0x0012cd5c) line 542 + 56 bytes nsAppShellService::CreateTopLevelWindow(nsAppShellService * const 0x010c4870, nsIXULWindow * 0x00000000, nsIURI * 0x00000000, int 0, int 0, unsigned int 2147485246, int -1, int -1, nsIXULWindow * * 0x0012cd5c) line 437 + 46 bytes nsXULWindow::CreateNewChromeWindow(nsXULWindow * const 0x02323190, int -2147482050, nsIDocShellTreeItem * * 0x0012d048) line 1292 + 70 bytes nsXULWindow::GetNewWindow(nsXULWindow * const 0x02323190, int -2147482050, nsIDocShellTreeItem * * 0x0012d048) line 1269 + 20 bytes nsChromeTreeOwner::GetNewWindow(nsChromeTreeOwner * const 0x02324590, int -2147482050, nsIDocShellTreeItem * * 0x0012d048) line 188 nsWindowWatcher::OpenWindowJS(nsWindowWatcher * const 0x010c0694, nsIDOMWindow * 0x02326454, const char * 0x05279db0, const char * 0x05279d70, const char * 0x05279d10, int 0, unsigned int 0, long * 0x00000000, nsIDOMWindow * * 0x0012d3a4) line 565 + 63 bytes nsWindowWatcher::OpenWindow(nsWindowWatcher * const 0x010c0690, nsIDOMWindow * 0x02326454, const char * 0x05279db0, const char * 0x05279d70, const char * 0x05279d10, nsISupports * 0x00000000, nsIDOMWindow * * 0x0012d3a4) line 453 + 48 bytes GlobalWindowImpl::OpenInternal(GlobalWindowImpl * const 0x02326450, const nsAString & {...}, const nsAString & {...}, const nsAString & {...}, int 0, long * 0x00000000, unsigned int 0, nsISupports * 0x00000000, nsIDOMWindow * * 0x0012d794) line 3390 + 115 bytes GlobalWindowImpl::Open(GlobalWindowImpl * const 0x02326458, nsIDOMWindow * * 0x0012d794) line 2357 + 49 bytes XPTC_InvokeByIndex(nsISupports * 0x02326458, unsigned int 13, unsigned int 1, nsXPTCVariant * 0x0012d794) line 154 XPCWrappedNative::CallMethod(XPCCallContext & {...}, XPCWrappedNative::CallMode CALL_METHOD) line 1951 + 42 bytes XPC_WN_CallMethod(JSContext * 0x023260d0, JSObject * 0x00cf5830, unsigned int 3, long * 0x03a09208, long * 0x0012d9cc) line 1266 + 14 bytes js_Invoke(JSContext * 0x023260d0, unsigned int 3, unsigned int 0) line 832 + 23 bytes js_Interpret(JSContext * 0x023260d0, long * 0x0012e7ac) line 2791 + 15 bytes js_Invoke(JSContext * 0x023260d0, unsigned int 1, unsigned int 2) line 849 + 13 bytes js_InternalInvoke(JSContext * 0x023260d0, JSObject * 0x039b4528, long 60507448, unsigned int 0, unsigned int 1, long * 0x0012e98c, long * 0x0012e8d4) line 924 + 20 bytes JS_CallFunctionValue(JSContext * 0x023260d0, JSObject * 0x039b4528, long 60507448, unsigned int 1, long * 0x0012e98c, long * 0x0012e8d4) line 3417 + 31 bytes nsJSContext::CallEventHandler(nsJSContext * const 0x02326280, void * 0x039b4528, void * 0x039b4538, unsigned int 1, void * 0x0012e98c, int * 0x0012e988, int 0) line 977 + 33 bytes nsJSEventListener::HandleEvent(nsJSEventListener * const 0x03258bf0, nsIDOMEvent * 0x05275924) line 155 + 74 bytes nsEventListenerManager::HandleEventSubType(nsListenerStruct * 0x03258bb0, nsIDOMEvent * 0x05275924, nsIDOMEventTarget * 0x0328f3e8, unsigned int 8, unsigned int 7) line 1213 + 20 bytes nsEventListenerManager::HandleEvent(nsEventListenerManager * const 0x03258c40, nsIPresContext * 0x023c0b40, nsEvent * 0x0012f4b4, nsIDOMEvent * * 0x0012f360, nsIDOMEventTarget * 0x0328f3e8, unsigned int 7, nsEventStatus * 0x0012f500) line 2203 + 36 bytes nsXULElement::HandleDOMEvent(nsXULElement * const 0x0328f3e0, nsIPresContext * 0x023c0b40, nsEvent * 0x0012f4b4, nsIDOMEvent * * 0x0012f360, unsigned int 1, nsEventStatus * 0x0012f500) line 3388 PresShell::HandleDOMEventWithTarget(PresShell * const 0x02b18d30, nsIContent * 0x0328f3e0, nsEvent * 0x0012f4b4, nsEventStatus * 0x0012f500) line 5841 + 36 bytes nsMenuFrame::Execute() line 1566 nsMenuFrame::HandleEvent(nsMenuFrame * const 0x03a02b94, nsIPresContext * 0x023c0b40, nsGUIEvent * 0x0012f950, nsEventStatus * 0x0012f844) line 472 PresShell::HandleEventInternal(nsEvent * 0x0012f950, nsIView * 0x0525d750, unsigned int 1, nsEventStatus * 0x0012f844) line 5809 + 38 bytes PresShell::HandleEvent(PresShell * const 0x02b18d34, nsIView * 0x0525d750, nsGUIEvent * 0x0012f950, nsEventStatus * 0x0012f844, int 0, int & 1) line 5719 + 25 bytes nsView::HandleEvent(nsView * const 0x0525d750, nsGUIEvent * 0x0012f950, unsigned int 8, nsEventStatus * 0x0012f844, int 0, int & 1) line 392 nsView::HandleEvent(nsView * const 0x05256870, nsGUIEvent * 0x0012f950, unsigned int 8, nsEventStatus * 0x0012f844, int 0, int & 1) line 365 nsView::HandleEvent(nsView * const 0x052537a0, nsGUIEvent * 0x0012f950, unsigned int 8, nsEventStatus * 0x0012f844, int 0, int & 1) line 365 nsView::HandleEvent(nsView * const 0x023a4300, nsGUIEvent * 0x0012f950, unsigned int 28, nsEventStatus * 0x0012f844, int 1, int & 1) line 365 nsViewManager::DispatchEvent(nsViewManager * const 0x023c0790, nsGUIEvent * 0x0012f950, nsEventStatus * 0x0012f844) line 2069 HandleEvent(nsGUIEvent * 0x0012f950) line 83 nsWindow::DispatchEvent(nsWindow * const 0x05256734, nsGUIEvent * 0x0012f950, nsEventStatus & nsEventStatus_eIgnore) line 744 + 10 bytes nsWindow::DispatchWindowEvent(nsGUIEvent * 0x0012f950) line 765 nsWindow::DispatchMouseEvent(unsigned int 301, nsPoint * 0x00000000) line 4317 + 21 bytes ChildWindow::DispatchMouseEvent(unsigned int 301, nsPoint * 0x00000000) line 4569 nsWindow::ProcessMessage(unsigned int 514, unsigned int 0, long 1507362, long * 0x0012fd6c) line 3252 + 24 bytes nsWindow::WindowProc(HWND__ * 0x00520f84, unsigned int 514, unsigned int 0, long 1507362) line 1012 + 27 bytes ------------------------------------------------------------------- Stack trace when "WEBSHELL+ = 6" is displayed: nsWebShell::nsWebShell() line 184 nsWebShellConstructor(nsISupports * 0x00000000, const nsID & {...}, void * * 0x0012dc04) line 28 + 66 bytes nsGenericFactory::CreateInstance(nsGenericFactory * const 0x0117d2d0, nsISupports * 0x00000000, const nsID & {...}, void * * 0x0012dc04) line 74 + 21 bytes nsComponentManagerImpl::CreateInstance(nsComponentManagerImpl * const 0x00956f50, const nsID & {...}, nsISupports * 0x00000000, const nsID & {...}, void * * 0x0012dc04) line 1616 + 24 bytes nsComponentManager::CreateInstance(const nsID & {...}, nsISupports * 0x00000000, const nsID & {...}, void * * 0x0012dc04) line 3470 nsCreateInstanceByCID::operator()(const nsID & {...}, void * * 0x0012dc04) line 138 + 27 bytes nsCOMPtr<nsIBaseWindow>::assign_from_helper(const nsCOMPtr_helper & {...}, const nsID & {...}) line 972 + 18 bytes nsCOMPtr<nsIBaseWindow>::operator=(const nsCOMPtr_helper & {...}) line 604 nsHTMLFrameInnerFrame::CreateDocShell(nsIPresContext * 0x050461d0) line 1018 nsHTMLFrameInnerFrame::Init(nsHTMLFrameInnerFrame * const 0x03d8da94, nsIPresContext * 0x050461d0, nsIContent * 0x052850f0, nsIFrame * 0x03d8da54, nsIStyleContext * 0x03d8da20, nsIFrame * 0x00000000) line 1377 + 12 bytes nsHTMLFrameOuterFrame::Init(nsHTMLFrameOuterFrame * const 0x03d8da54, nsIPresContext * 0x050461d0, nsIContent * 0x052850f0, nsIFrame * 0x03d89edc, nsIStyleContext * 0x03d8d988, nsIFrame * 0x00000000) line 366 + 33 bytes nsCSSFrameConstructor::InitAndRestoreFrame(nsIPresContext * 0x050461d0, nsFrameConstructorState & {...}, nsIContent * 0x052850f0, nsIFrame * 0x03d89edc, nsIStyleContext * 0x03d8d988, nsIFrame * 0x00000000, nsIFrame * 0x03d8da54) line 6506 + 32 bytes nsCSSFrameConstructor::ConstructXULFrame(nsIPresShell * 0x05047070, nsIPresContext * 0x050461d0, nsFrameConstructorState & {...}, nsIContent * 0x052850f0, nsIFrame * 0x03d89edc, nsIAtom * 0x011072a0, int 7, nsIStyleContext * 0x03d8d988, nsFrameItems & {...}, int 0, int & 0) line 5615 nsCSSFrameConstructor::ConstructFrameInternal(nsIPresShell * 0x05047070, nsIPresContext * 0x050461d0, nsFrameConstructorState & {...}, nsIContent * 0x052850f0, nsIFrame * 0x03d89edc, nsIAtom * 0x011072a0, int 7, nsIStyleContext * 0x03d8d988, nsFrameItems & {...}, int 0) line 7036 + 57 bytes nsCSSFrameConstructor::ConstructFrame(nsIPresShell * 0x05047070, nsIPresContext * 0x050461d0, nsFrameConstructorState & {...}, nsIContent * 0x052850f0, nsIFrame * 0x03d89edc, nsFrameItems & {...}) line 6940 + 56 bytes nsCSSFrameConstructor::ProcessChildren(nsIPresShell * 0x05047070, nsIPresContext * 0x050461d0, nsFrameConstructorState & {...}, nsIContent * 0x052851f0, nsIFrame * 0x03d89edc, int 0, nsFrameItems & {...}, int 0, nsTableCreator * 0x00000000) line 11530 + 66 bytes nsCSSFrameConstructor::ConstructXULFrame(nsIPresShell * 0x05047070, nsIPresContext * 0x050461d0, nsFrameConstructorState & {...}, nsIContent * 0x052851f0, nsIFrame * 0x03d89dd0, nsIAtom * 0x01110a50, int 7, nsIStyleContext * 0x03d89afc, nsFrameItems & {...}, int 0, int & 0) line 5636 + 44 bytes nsCSSFrameConstructor::ConstructFrameInternal(nsIPresShell * 0x05047070, nsIPresContext * 0x050461d0, nsFrameConstructorState & {...}, nsIContent * 0x052851f0, nsIFrame * 0x03d89dd0, nsIAtom * 0x01110a50, int 7, nsIStyleContext * 0x03d89afc, nsFrameItems & {...}, int 0) line 7036 + 57 bytes nsCSSFrameConstructor::ConstructFrame(nsIPresShell * 0x05047070, nsIPresContext * 0x050461d0, nsFrameConstructorState & {...}, nsIContent * 0x052851f0, nsIFrame * 0x03d89dd0, nsFrameItems & {...}) line 6940 + 56 bytes nsCSSFrameConstructor::ProcessChildren(nsIPresShell * 0x05047070, nsIPresContext * 0x050461d0, nsFrameConstructorState & {...}, nsIContent * 0x05285260, nsIFrame * 0x03d89dd0, int 0, nsFrameItems & {...}, int 0, nsTableCreator * 0x00000000) line 11530 + 66 bytes nsCSSFrameConstructor::ConstructXULFrame(nsIPresShell * 0x05047070, nsIPresContext * 0x050461d0, nsFrameConstructorState & {...}, nsIContent * 0x05285260, nsIFrame * 0x03d5e8dc, nsIAtom * 0x01110a50, int 7, nsIStyleContext * 0x03d89618, nsFrameItems & {...}, int 0, int & 0) line 5636 + 44 bytes nsCSSFrameConstructor::ConstructFrameInternal(nsIPresShell * 0x05047070, nsIPresContext * 0x050461d0, nsFrameConstructorState & {...}, nsIContent * 0x05285260, nsIFrame * 0x03d5e8dc, nsIAtom * 0x01110a50, int 7, nsIStyleContext * 0x03d89618, nsFrameItems & {...}, int 0) line 7036 + 57 bytes nsCSSFrameConstructor::ConstructFrame(nsIPresShell * 0x05047070, nsIPresContext * 0x050461d0, nsFrameConstructorState & {...}, nsIContent * 0x05285260, nsIFrame * 0x03d5e8dc, nsFrameItems & {...}) line 6940 + 56 bytes nsCSSFrameConstructor::ProcessChildren(nsIPresShell * 0x05047070, nsIPresContext * 0x050461d0, nsFrameConstructorState & {...}, nsIContent * 0x05285a40, nsIFrame * 0x03d5e8dc, int 0, nsFrameItems & {...}, int 0, nsTableCreator * 0x00000000) line 11530 + 66 bytes nsCSSFrameConstructor::ConstructXULFrame(nsIPresShell * 0x05047070, nsIPresContext * 0x050461d0, nsFrameConstructorState & {...}, nsIContent * 0x05285a40, nsIFrame * 0x03d5d11c, nsIAtom * 0x01110aa0, int 7, nsIStyleContext * 0x03cfbff8, nsFrameItems & {...}, int 0, int & 0) line 5636 + 44 bytes nsCSSFrameConstructor::ConstructFrameInternal(nsIPresShell * 0x05047070, nsIPresContext * 0x050461d0, nsFrameConstructorState & {...}, nsIContent * 0x05285a40, nsIFrame * 0x03d5d11c, nsIAtom * 0x01110aa0, int 7, nsIStyleContext * 0x03cfbff8, nsFrameItems & {...}, int 0) line 7036 + 57 bytes nsCSSFrameConstructor::ConstructFrame(nsIPresShell * 0x05047070, nsIPresContext * 0x050461d0, nsFrameConstructorState & {...}, nsIContent * 0x05285a40, nsIFrame * 0x03d5d11c, nsFrameItems & {...}) line 6940 + 56 bytes nsCSSFrameConstructor::ProcessChildren(nsIPresShell * 0x05047070, nsIPresContext * 0x050461d0, nsFrameConstructorState & {...}, nsIContent * 0x05243cc0, nsIFrame * 0x03d5d11c, int 1, nsFrameItems & {...}, int 0, nsTableCreator * 0x00000000) line 11530 + 66 bytes nsCSSFrameConstructor::ConstructDocElementFrame(nsIPresShell * 0x05047070, nsIPresContext * 0x050461d0, nsFrameConstructorState & {...}, nsIContent * 0x05243cc0, nsIFrame * 0x03d5ce24, nsIStyleContext * 0x03d5cef0, nsIFrame * & 0x03d5d11c) line 3367 nsCSSFrameConstructor::ContentInserted(nsCSSFrameConstructor * const 0x05047440, nsIPresContext * 0x050461d0, nsIContent * 0x00000000, nsIContent * 0x05243cc0, int 0, nsILayoutHistoryState * 0x00000000) line 8438 StyleSetImpl::ContentInserted(StyleSetImpl * const 0x05047510, nsIPresContext * 0x050461d0, nsIContent * 0x00000000, nsIContent * 0x05243cc0, int 0) line 1260 PresShell::InitialReflow(PresShell * const 0x05047070, int 1560, int 0) line 2652 nsXULDocument::StartLayout() line 4341 nsXULDocument::ResumeWalk() line 5884 nsXULDocument::EndLoad(nsXULDocument * const 0x05041ad0) line 1656 + 8 bytes XULContentSinkImpl::DidBuildModel(XULContentSinkImpl * const 0x055d69c0, int 1) line 536 CWellFormedDTD::DidBuildModel(CWellFormedDTD * const 0x055d77f0, unsigned int 0, int 1, nsIParser * 0x055d6890, nsIContentSink * 0x055d69c0) line 306 + 20 bytes nsParser::DidBuildModel(unsigned int 0) line 1381 + 55 bytes nsParser::ResumeParse(int 1, int 1) line 1890 nsParser::OnStopRequest(nsParser * const 0x055d6894, nsIRequest * 0x055d6300, nsISupports * 0x00000000, unsigned int 0) line 2523 + 19 bytes nsJARChannel::OnStopRequest(nsJARChannel * const 0x055d6304, nsIRequest * 0x055d7eb4, nsISupports * 0x00000000, unsigned int 0) line 611 + 49 bytes nsOnStopRequestEvent::HandleEvent() line 177 nsARequestObserverEvent::HandlePLEvent(PLEvent * 0x055d76f4) line 80 PL_HandleEvent(PLEvent * 0x055d76f4) line 590 + 10 bytes PL_ProcessPendingEvents(PLEventQueue * 0x009cfb00) line 520 + 9 bytes _md_EventReceiverProc(HWND__ * 0x00d40fe8, unsigned int 49428, unsigned int 0, long 10287872) line 1071 + 9 bytes ------------------------------------------------------------------- Stack trace when "WEBSHELL+ = 7" is displayed: nsWebShell::nsWebShell() line 184 nsWebShellConstructor(nsISupports * 0x00000000, const nsID & {...}, void * * 0x0012d7a8) line 28 + 66 bytes nsGenericFactory::CreateInstance(nsGenericFactory * const 0x0117d2d0, nsISupports * 0x00000000, const nsID & {...}, void * * 0x0012d7a8) line 74 + 21 bytes nsComponentManagerImpl::CreateInstance(nsComponentManagerImpl * const 0x00956f50, const nsID & {...}, nsISupports * 0x00000000, const nsID & {...}, void * * 0x0012d7a8) line 1616 + 24 bytes nsComponentManager::CreateInstance(const nsID & {...}, nsISupports * 0x00000000, const nsID & {...}, void * * 0x0012d7a8) line 3470 nsCreateInstanceByCID::operator()(const nsID & {...}, void * * 0x0012d7a8) line 138 + 27 bytes nsCOMPtr<nsIBaseWindow>::assign_from_helper(const nsCOMPtr_helper & {...}, const nsID & {...}) line 972 + 18 bytes nsCOMPtr<nsIBaseWindow>::operator=(const nsCOMPtr_helper & {...}) line 604 nsHTMLFrameInnerFrame::CreateDocShell(nsIPresContext * 0x050461d0) line 1018 nsHTMLFrameInnerFrame::Init(nsHTMLFrameInnerFrame * const 0x03db9460, nsIPresContext * 0x050461d0, nsIContent * 0x052862d0, nsIFrame * 0x03db9420, nsIStyleContext * 0x03da9524, nsIFrame * 0x00000000) line 1377 + 12 bytes nsHTMLFrameOuterFrame::Init(nsHTMLFrameOuterFrame * const 0x03db9420, nsIPresContext * 0x050461d0, nsIContent * 0x052862d0, nsIFrame * 0x03da4850, nsIStyleContext * 0x03da9124, nsIFrame * 0x00000000) line 366 + 33 bytes nsCSSFrameConstructor::InitAndRestoreFrame(nsIPresContext * 0x050461d0, nsFrameConstructorState & {...}, nsIContent * 0x052862d0, nsIFrame * 0x03da4850, nsIStyleContext * 0x03da9124, nsIFrame * 0x00000000, nsIFrame * 0x03db9420) line 6506 + 32 bytes nsCSSFrameConstructor::ConstructXULFrame(nsIPresShell * 0x05047070, nsIPresContext * 0x050461d0, nsFrameConstructorState & {...}, nsIContent * 0x052862d0, nsIFrame * 0x03da4850, nsIAtom * 0x01111780, int 7, nsIStyleContext * 0x03da9124, nsFrameItems & {...}, int 0, int & 0) line 5615 nsCSSFrameConstructor::ConstructFrameInternal(nsIPresShell * 0x05047070, nsIPresContext * 0x050461d0, nsFrameConstructorState & {...}, nsIContent * 0x052862d0, nsIFrame * 0x03da4850, nsIAtom * 0x01111780, int 7, nsIStyleContext * 0x03da9124, nsFrameItems & {...}, int 0) line 7036 + 57 bytes nsCSSFrameConstructor::ConstructFrame(nsIPresShell * 0x05047070, nsIPresContext * 0x050461d0, nsFrameConstructorState & {...}, nsIContent * 0x052862d0, nsIFrame * 0x03da4850, nsFrameItems & {...}) line 6940 + 56 bytes nsCSSFrameConstructor::ProcessChildren(nsIPresShell * 0x05047070, nsIPresContext * 0x050461d0, nsFrameConstructorState & {...}, nsIContent * 0x052866f0, nsIFrame * 0x03da4850, int 0, nsFrameItems & {...}, int 0, nsTableCreator * 0x00000000) line 11530 + 66 bytes nsCSSFrameConstructor::ConstructXULFrame(nsIPresShell * 0x05047070, nsIPresContext * 0x050461d0, nsFrameConstructorState & {...}, nsIContent * 0x052866f0, nsIFrame * 0x03d8dc38, nsIAtom * 0x01110a50, int 7, nsIStyleContext * 0x03d8df78, nsFrameItems & {...}, int 0, int & 0) line 5636 + 44 bytes nsCSSFrameConstructor::ConstructFrameInternal(nsIPresShell * 0x05047070, nsIPresContext * 0x050461d0, nsFrameConstructorState & {...}, nsIContent * 0x052866f0, nsIFrame * 0x03d8dc38, nsIAtom * 0x01110a50, int 7, nsIStyleContext * 0x03d8df78, nsFrameItems & {...}, int 0) line 7036 + 57 bytes nsCSSFrameConstructor::ConstructFrame(nsIPresShell * 0x05047070, nsIPresContext * 0x050461d0, nsFrameConstructorState & {...}, nsIContent * 0x052866f0, nsIFrame * 0x03d8dc38, nsFrameItems & {...}) line 6940 + 56 bytes nsCSSFrameConstructor::ProcessChildren(nsIPresShell * 0x05047070, nsIPresContext * 0x050461d0, nsFrameConstructorState & {...}, nsIContent * 0x05285080, nsIFrame * 0x03d8dc38, int 0, nsFrameItems & {...}, int 0, nsTableCreator * 0x00000000) line 11530 + 66 bytes nsCSSFrameConstructor::ConstructXULFrame(nsIPresShell * 0x05047070, nsIPresContext * 0x050461d0, nsFrameConstructorState & {...}, nsIContent * 0x05285080, nsIFrame * 0x03d89dd0, nsIAtom * 0x01110a50, int 7, nsIStyleContext * 0x03d8dc04, nsFrameItems & {...}, int 0, int & 0) line 5636 + 44 bytes nsCSSFrameConstructor::ConstructFrameInternal(nsIPresShell * 0x05047070, nsIPresContext * 0x050461d0, nsFrameConstructorState & {...}, nsIContent * 0x05285080, nsIFrame * 0x03d89dd0, nsIAtom * 0x01110a50, int 7, nsIStyleContext * 0x03d8dc04, nsFrameItems & {...}, int 0) line 7036 + 57 bytes nsCSSFrameConstructor::ConstructFrame(nsIPresShell * 0x05047070, nsIPresContext * 0x050461d0, nsFrameConstructorState & {...}, nsIContent * 0x05285080, nsIFrame * 0x03d89dd0, nsFrameItems & {...}) line 6940 + 56 bytes nsCSSFrameConstructor::ProcessChildren(nsIPresShell * 0x05047070, nsIPresContext * 0x050461d0, nsFrameConstructorState & {...}, nsIContent * 0x05285260, nsIFrame * 0x03d89dd0, int 0, nsFrameItems & {...}, int 0, nsTableCreator * 0x00000000) line 11530 + 66 bytes nsCSSFrameConstructor::ConstructXULFrame(nsIPresShell * 0x05047070, nsIPresContext * 0x050461d0, nsFrameConstructorState & {...}, nsIContent * 0x05285260, nsIFrame * 0x03d5e8dc, nsIAtom * 0x01110a50, int 7, nsIStyleContext * 0x03d89618, nsFrameItems & {...}, int 0, int & 0) line 5636 + 44 bytes nsCSSFrameConstructor::ConstructFrameInternal(nsIPresShell * 0x05047070, nsIPresContext * 0x050461d0, nsFrameConstructorState & {...}, nsIContent * 0x05285260, nsIFrame * 0x03d5e8dc, nsIAtom * 0x01110a50, int 7, nsIStyleContext * 0x03d89618, nsFrameItems & {...}, int 0) line 7036 + 57 bytes nsCSSFrameConstructor::ConstructFrame(nsIPresShell * 0x05047070, nsIPresContext * 0x050461d0, nsFrameConstructorState & {...}, nsIContent * 0x05285260, nsIFrame * 0x03d5e8dc, nsFrameItems & {...}) line 6940 + 56 bytes nsCSSFrameConstructor::ProcessChildren(nsIPresShell * 0x05047070, nsIPresContext * 0x050461d0, nsFrameConstructorState & {...}, nsIContent * 0x05285a40, nsIFrame * 0x03d5e8dc, int 0, nsFrameItems & {...}, int 0, nsTableCreator * 0x00000000) line 11530 + 66 bytes nsCSSFrameConstructor::ConstructXULFrame(nsIPresShell * 0x05047070, nsIPresContext * 0x050461d0, nsFrameConstructorState & {...}, nsIContent * 0x05285a40, nsIFrame * 0x03d5d11c, nsIAtom * 0x01110aa0, int 7, nsIStyleContext * 0x03cfbff8, nsFrameItems & {...}, int 0, int & 0) line 5636 + 44 bytes nsCSSFrameConstructor::ConstructFrameInternal(nsIPresShell * 0x05047070, nsIPresContext * 0x050461d0, nsFrameConstructorState & {...}, nsIContent * 0x05285a40, nsIFrame * 0x03d5d11c, nsIAtom * 0x01110aa0, int 7, nsIStyleContext * 0x03cfbff8, nsFrameItems & {...}, int 0) line 7036 + 57 bytes nsCSSFrameConstructor::ConstructFrame(nsIPresShell * 0x05047070, nsIPresContext * 0x050461d0, nsFrameConstructorState & {...}, nsIContent * 0x05285a40, nsIFrame * 0x03d5d11c, nsFrameItems & {...}) line 6940 + 56 bytes nsCSSFrameConstructor::ProcessChildren(nsIPresShell * 0x05047070, nsIPresContext * 0x050461d0, nsFrameConstructorState & {...}, nsIContent * 0x05243cc0, nsIFrame * 0x03d5d11c, int 1, nsFrameItems & {...}, int 0, nsTableCreator * 0x00000000) line 11530 + 66 bytes nsCSSFrameConstructor::ConstructDocElementFrame(nsIPresShell * 0x05047070, nsIPresContext * 0x050461d0, nsFrameConstructorState & {...}, nsIContent * 0x05243cc0, nsIFrame * 0x03d5ce24, nsIStyleContext * 0x03d5cef0, nsIFrame * & 0x03d5d11c) line 3367 nsCSSFrameConstructor::ContentInserted(nsCSSFrameConstructor * const 0x05047440, nsIPresContext * 0x050461d0, nsIContent * 0x00000000, nsIContent * 0x05243cc0, int 0, nsILayoutHistoryState * 0x00000000) line 8438 StyleSetImpl::ContentInserted(StyleSetImpl * const 0x05047510, nsIPresContext * 0x050461d0, nsIContent * 0x00000000, nsIContent * 0x05243cc0, int 0) line 1260 PresShell::InitialReflow(PresShell * const 0x05047070, int 1560, int 0) line 2652 nsXULDocument::StartLayout() line 4341 nsXULDocument::ResumeWalk() line 5884 nsXULDocument::EndLoad(nsXULDocument * const 0x05041ad0) line 1656 + 8 bytes XULContentSinkImpl::DidBuildModel(XULContentSinkImpl * const 0x055d69c0, int 1) line 536 CWellFormedDTD::DidBuildModel(CWellFormedDTD * const 0x055d77f0, unsigned int 0, int 1, nsIParser * 0x055d6890, nsIContentSink * 0x055d69c0) line 306 + 20 bytes nsParser::DidBuildModel(unsigned int 0) line 1381 + 55 bytes nsParser::ResumeParse(int 1, int 1) line 1890 nsParser::OnStopRequest(nsParser * const 0x055d6894, nsIRequest * 0x055d6300, nsISupports * 0x00000000, unsigned int 0) line 2523 + 19 bytes nsJARChannel::OnStopRequest(nsJARChannel * const 0x055d6304, nsIRequest * 0x055d7eb4, nsISupports * 0x00000000, unsigned int 0) line 611 + 49 bytes nsOnStopRequestEvent::HandleEvent() line 177 nsARequestObserverEvent::HandlePLEvent(PLEvent * 0x055d76f4) line 80 PL_HandleEvent(PLEvent * 0x055d76f4) line 590 + 10 bytes PL_ProcessPendingEvents(PLEventQueue * 0x009cfb00) line 520 + 9 bytes _md_EventReceiverProc(HWND__ * 0x00d40fe8, unsigned int 49428, unsigned int 0, long 10287872) line 1071 + 9 bytes
Here is the % breakdown of the time spent between two (consecutive) WEBSHELL+ display (ie, between the end of first WEBSHELL+ display and the start of the second WEBSHELL+ display): "WEBSHELL+ = 5" "WEBSHELL+ = 6" "WEBSHELL+ = 7" | | | +--> 1.953 (84%) <--+--> 0.33 (14%) <---+ The rest 2% is used to perform nsWebShell::nsWebShell() itself.
If I close mail program and restart it again from the browser then it takes about 34.5% less time (than the 1st launch) to finish. Here are the 3 tries I made: 2nd/1st % of 1st % Improved 4.88/7.44 = 65.59 34.41 4.94/7.50 = 65.87 34.13 4.83/7.46 = 64.75 35.25 From the timing log I think it's because we don't have to load the resources again the 2nd time.
Here are the DLL's that we load during startup: msgbase.dll mime.dll addrbook.dll msglocal.dll msgcompo.dll msgdb.dll wallet.dll and they only take up 2.417% (2.434% and 2.399%) of the total startup time. The DLL loading time is the time spent in PR_LoadLibrary().
Ccing dp since he's on top of the browser statup issue.
Test results of having various tool bars in the mailnews main window. I was using a stopwatch to manually measure the time. The sidebar is off for the tests. All Bars No Tool No Tool & No Bar Bar Status Bars At All -------- ------- ----------- ------ 7.03 6.64 6.55 6.48 % Faster 5.55% 6.83% 7.82% 'No bar At All' means no tool bar, status bar and quick search bar. I also noticed that the only difference between the two timing logs is that the following lines are missing from the timing log of the scenario without the tool bar: 00022.893: nsIOService::NewChannelFromURI(chrome://messenger/skin/btn1/getmsg.gif) 00022.893: nsIOService::NewChannelFromURI(jar:resource:///chrome/modern.jar!/skin/modern/me ssenger/btn1/getmsg.gif) 00022.913: nsIOService::NewChannelFromURI(chrome://messenger/skin/btn1/newmsg.gif) 00022.913: nsIOService::NewChannelFromURI(jar:resource:///chrome/modern.jar!/skin/modern/me ssenger/btn1/newmsg.gif) 00022.923: nsIOService::NewChannelFromURI(chrome://messenger/skin/btn1/reply.gif) 00022.923: nsIOService::NewChannelFromURI(jar:resource:///chrome/modern.jar!/skin/modern/me ssenger/btn1/reply.gif) 00022.933: nsIOService::NewChannelFromURI(chrome://messenger/skin/btn1/replyall.gif) 00022.933: nsIOService::NewChannelFromURI(jar:resource:///chrome/modern.jar!/skin/modern/me ssenger/btn1/replyall.gif) 00022.953: nsIOService::NewChannelFromURI(chrome://messenger/skin/btn1/forward.gif) 00022.953: nsIOService::NewChannelFromURI(jar:resource:///chrome/modern.jar!/skin/modern/me ssenger/btn1/forward.gif) 00022.963: nsIOService::NewChannelFromURI(chrome://messenger/skin/btn1/file.gif) 00022.963: nsIOService::NewChannelFromURI(jar:resource:///chrome/modern.jar!/skin/modern/me ssenger/btn1/file.gif) 00022.973: nsIOService::NewChannelFromURI(chrome://messenger/skin/btn1/next.gif) 00022.973: nsIOService::NewChannelFromURI(jar:resource:///chrome/modern.jar!/skin/modern/me ssenger/btn1/next.gif) 00022.983: nsIOService::NewChannelFromURI(chrome://messenger/skin/btn1/delete.gif) 00022.993: nsIOService::NewChannelFromURI(jar:resource:///chrome/modern.jar!/skin/modern/me ssenger/btn1/delete.gif) 00023.013: nsIOService::NewChannelFromURI(chrome://communicator/skin/btn1/print.gif) 00023.013: nsIOService::NewChannelFromURI(jar:resource:///chrome/modern.jar!/skin/modern/co mmunicator/btn1/print.gif) 00023.023: nsIOService::NewChannelFromURI(chrome://communicator/skin/btn1/stop.gif) 00023.023: nsIOService::NewChannelFromURI(jar:resource:///chrome/modern.jar!/skin/modern/co mmunicator/btn1/stop.gif) 00023.073: 00024.765: nsIOService::NewChannelFromURI(chrome://messenger/skin/btn1/reply-dis.gif) 00024.765: nsIOService::NewChannelFromURI(jar:resource:///chrome/modern.jar!/skin/modern/me ssenger/btn1/reply-dis.gif) 00024.775: nsIOService::NewChannelFromURI(chrome://messenger/skin/btn1/replyall-dis.gif) 00024.775: nsIOService::NewChannelFromURI(jar:resource:///chrome/modern.jar!/skin/modern/me ssenger/btn1/replyall-dis.gif) 00024.795: nsIOService::NewChannelFromURI(chrome://messenger/skin/btn1/forward-dis.gif) 00024.795: nsIOService::NewChannelFromURI(jar:resource:///chrome/modern.jar!/skin/modern/me ssenger/btn1/forward-dis.gif) 00024.805: nsIOService::NewChannelFromURI(chrome://messenger/skin/btn1/delete-dis.gif) 00024.805: nsIOService::NewChannelFromURI(jar:resource:///chrome/modern.jar!/skin/modern/me ssenger/btn1/delete-dis.gif) 00024.835: nsIOService::NewChannelFromURI(chrome://messenger/skin/btn1/getmsg-dis.gif) 00024.835: nsIOService::NewChannelFromURI(jar:resource:///chrome/modern.jar!/skin/modern/me ssenger/btn1/getmsg-dis.gif) 00024.855: nsIOService::NewChannelFromURI(chrome://communicator/skin/btn1/print-dis.gif) 00024.855: nsIOService::NewChannelFromURI(jar:resource:///chrome/modern.jar!/skin/modern/co mmunicator/btn1/print-dis.gif) 00024.865: nsIOService::NewChannelFromURI(chrome://messenger/skin/btn1/next-dis.gif) 00024.875: nsIOService::NewChannelFromURI(jar:resource:///chrome/modern.jar!/skin/modern/me ssenger/btn1/next-dis.gif) 00024.885: nsIOService::NewChannelFromURI(chrome://messenger/skin/btn1/file-dis.gif) 00024.885: nsIOService::NewChannelFromURI(jar:resource:///chrome/modern.jar!/skin/modern/me ssenger/btn1/file-dis.gif) 00024.885: 00025.276: nsIOService::NewChannelFromURI(chrome://messenger/skin/icons/mast-mail.gif) 00025.276: nsIOService::NewChannelFromURI(jar:resource:///chrome/modern.jar!/skin/modern/me ssenger/icons/mast-mail.gif) 00025.276: nsIOService::NewChannelFromURI(chrome://communicator/skin/toolbar/prtb-mid-top.g if) 00025.276: nsIOService::NewChannelFromURI(jar:resource:///chrome/modern.jar!/skin/modern/co mmunicator/toolbar/prtb-mid-top.gif) 00025.336: nsIOService::NewChannelFromURI(chrome://global/skin/splitter/grip-vrt-before.gif ) 00025.336:
Here is the test matrix (a/b = 2nd/1st launch) related to folder pane and sidebar open/close. Tool bar, status bar and quick search bar are all on for the tests. No F.P. & W/ F.P. & No S.B. F.P. only S.B. ----------- ----------- ---------- 4.5/7.00 4.8/7.55 5.98/8.45 where F.P. = Folder Pane S.B. = SideBar So it's about 0.5 second more with folder pane open and 1.45 seconds more with both folder pane and sidebar open.
Moving to 0.9.8. however, if you don't think this bug is going to go anywhere, plesae move it to future or wontfix or reassign it to someone who can help on it. Do we have a bug on improvements we can make to loading the sidebar?
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9.8
Marking WONTFIX as resource loading improvement has been addressed by dp's group. I'll also create a new bug on the delay loading of sidebar (after the password dialog has been dismissed). This should make the startup time (feel) a little bit faster.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → WONTFIX
verified, looks like you have a handle on this, cavin
Status: RESOLVED → VERIFIED
QA Contact: esther → stephend
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: