Closed
Bug 1142623
Opened 10 years ago
Closed 10 years ago
slow to open in-content preferences/about:addons as well as web page and open new window, if Browser Console has been opened
Categories
(DevTools :: Console, defect)
Tracking
(firefox38 unaffected, firefox39+ fixed)
RESOLVED
FIXED
Firefox 39
Tracking | Status | |
---|---|---|
firefox38 | --- | unaffected |
firefox39 | + | fixed |
People
(Reporter: alice0775, Assigned: ochameau)
References
Details
(Keywords: perf, regression)
Attachments
(1 file)
1.29 KB,
patch
|
past
:
review+
|
Details | Diff | Splinter Review |
Steps:
1. Open Browser Console Ctrl+Shift+J
2. Open in-content preferences Tools > Options
Actual Results:
It takes avout 1-2 sec
Expected Results:
Should be instant
![]() |
Reporter | |
Comment 1•10 years ago
|
||
![]() |
Reporter | |
Comment 2•10 years ago
|
||
also slow to open about:addons
Component: Preferences → Developer Tools: Console
Summary: slow to open in-content preferences if Browser Console has been opened → slow to open in-content preferences/about:addons if Browser Console has been opened
![]() |
Reporter | |
Comment 3•10 years ago
|
||
[Tracking Requested - why for this release]:
status-firefox38:
--- → unaffected
status-firefox39:
--- → affected
tracking-firefox39:
--- → ?
Version: Trunk → 39 Branch
![]() |
Reporter | |
Comment 4•10 years ago
|
||
Also affected to normal web page.
Steps:
1. Open Browser Console Ctrl+Shift+J
2. Open https://support.mozilla.org/en-US/kb/get-started-firefox-overview-main-features
3. Try to scroll the page while page is loading
Actual Results:
Browser becomes unresponsive for 10 seconds or so.
Expected Results:
Browser should respond
Another steps
1. Open Browser Console Ctrl+Shift+J
2. Open new window Ctrl+N
Actual Results:
Browser becomes unresponsive for 10 seconds or so.
Expected Results:
Browser should respond
All of the abobe, same regression range of comment#1
Severity: normal → critical
Summary: slow to open in-content preferences/about:addons if Browser Console has been opened → slow to open in-content preferences/about:addons as well as web page and open new window, if Browser Console has been opened
![]() |
Reporter | |
Comment 5•10 years ago
|
||
s/abobe/above/
Comment 6•10 years ago
|
||
Tracking since this is a major performance regression.
The slow response for about:preferences looks to be true with or without e10s.
Assignee | ||
Comment 7•10 years ago
|
||
The profiler seems to designate this method as performance culprit:
http://mxr.mozilla.org/mozilla-central/source/toolkit/devtools/server/actors/utils/map-uri-to-addon-id.js#40
mapURIToAddonID
I need to verify this...
We may be calling this method more often as we track more documents.
Flags: needinfo?(poirot.alex)
Assignee | ||
Comment 8•10 years ago
|
||
Ok, so I think the main regression of bug 1059308 is that, due to new TabActor code,
we always enable ThreadActor's debugger and its various listeners.
I think we can also ensure that enabling the thread actor won't cost so much when enabled...
This `if (this.threadActor.dbg)` check seems useless as dbg getter always returns a Debugger instance.
Assignee | ||
Updated•10 years ago
|
Attachment #8578661 -
Flags: review?(past)
Assignee | ||
Comment 9•10 years ago
|
||
At the end it doesn't look like mapURIToAddonID is the debugger performance culprit.
So far I've only been able to track it down to onNewScript/addScript:
http://mxr.mozilla.org/mozilla-central/source/toolkit/devtools/server/actors/script.js#2026
We are calling _addScript *a lot* when opening about:addons/about:preferences (actually, doing anything in Fx UI is going to dispatch a lot of calls).
It looks like the first time we call _addScript for a new source, it takes a significant time, between 3 and 10ms. Then the next time we call _addScript for the same source it is most of the time under 1ms.
James, any random guess?
Flags: needinfo?(jlong)
Comment 10•10 years ago
|
||
Comment on attachment 8578661 [details] [diff] [review]
Prevent enabling Debugger in Browser Toolbox during its startup
Review of attachment 8578661 [details] [diff] [review]:
-----------------------------------------------------------------
I added the threadActor.dbg check in bug 740551 that implemented chrome debugging (I think because a test was failing), but this code has changed a lot in the last 2.5 years, so it may well be unnecessary now.
Attachment #8578661 -
Flags: review?(past) → review+
Assignee | ||
Comment 11•10 years ago
|
||
Comment 12•10 years ago
|
||
(In reply to Alexandre Poirot [:ochameau] from comment #9)
> At the end it doesn't look like mapURIToAddonID is the debugger performance
> culprit.
> So far I've only been able to track it down to onNewScript/addScript:
>
> http://mxr.mozilla.org/mozilla-central/source/toolkit/devtools/server/actors/
> script.js#2026
>
> We are calling _addScript *a lot* when opening
> about:addons/about:preferences (actually, doing anything in Fx UI is going
> to dispatch a lot of calls).
> It looks like the first time we call _addScript for a new source, it takes a
> significant time, between 3 and 10ms. Then the next time we call _addScript
> for the same source it is most of the time under 1ms.
>
> James, any random guess?
The `_addScript` function is called once for every JavaScript source. If there are a lot of JS sources, it can add up and be slow. Some of this is just the nature of connecting devtools -- it's going to make stuff slower. However, we plan on trying to optimize it, but 3-10ms per source honestly does not sound that bad.
I don't have enough context, but yes, connecting the debugger is going to make the initial page load slower.
Flags: needinfo?(jlong)
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → poirot.alex
Keywords: checkin-needed
Comment 13•10 years ago
|
||
Keywords: checkin-needed
Whiteboard: [fixed-in-fx-team]
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 39
Comment 15•10 years ago
|
||
seems not fixed at all. when I open about:addons or Console (Ctrl+Shift+J) or Speed Dial [FVD] - New Tab Page, Sync... 7.0.1 (new tab) take 6~10 sec to full load the content, sometimes takes much more.
I'm on firefox 39.0beta1
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•