Firefox/Projects/Startup Time Improvements/joelr notes: Difference between revisions

Jump to navigation Jump to search
No edit summary
Line 37: Line 37:
ac_add_options --disable-strip
ac_add_options --disable-strip
ac_add_options --disable-install-strip
ac_add_options --disable-install-strip
</pre>
I'm getting 5s from cold start to return from ''BrowserStartup'' (JavaScript), e.g.
<pre>
./d firefox-bin startup.d stop-js.d
dtrace -Zqw -x dynvarsize=64m -x evaltime=preinit -p 55752  -s startup.d -s stop-js.d -s sigcont.d
kill -CONT 55752
Total: 5000.294085ms
</pre>
The hot path for those 5s looks like this:
<pre>
./d firefox-bin hotpath.d stop-js.d
dtrace -Zqw -x dynvarsize=64m -x evaltime=preinit -p 55765  -s hotpath.d -s stop-js.d -s sigcont.d
kill -CONT 55765
  XUL`nsFrame::BoxReflow(nsBoxLayoutState&, nsPresContext*, nsHTMLReflowMetrics&, nsIRenderingContext*, int, int, int, int, int)            1382
  firefox-bin`0x0                                                623
  XUL`nsHTMLInputElement::GetReadOnly(int*)                        53
  XUL`nsOverflowContinuationTracker::Insert(nsIFrame*, unsigned int&)              48
  XUL`MapAttributesIntoRule(nsMappedAttributes const*, nsRuleData*)              24
  XUL`nsBlockFrame::Reflow(nsPresContext*, nsHTMLReflowMetrics&, nsHTMLReflowState const&, unsigned int&)              20
  XUL`nsColumnSetFrame::ReflowChildren(nsHTMLReflowMetrics&, nsHTMLReflowState const&, unsigned int&, nsColumnSetFrame::ReflowConfig const&, int, nsCollapsingMargin*, nsColumnSetFrame::ColumnBalanceData&)              18
  XUL`DocumentViewerImpl::PageHide(int)                            18
  XUL`nsBlockFrame::DoReflowInlineFrames(nsBlockReflowState&, nsLineLayout&, nsLineList_iterator, nsFlowAreaRect&, int&, nsFloatManager::SavedState*, int*, LineReflowStatus*, int)              14
  XUL`non-virtual thunk to nsHTMLInputElement::Release()              11
...
</pre>
</pre>


109

edits

Navigation menu