Closed Bug 1324565 Opened 7 years ago Closed 7 years ago

Stop using SDK page-mod for highlighter

Categories

(DevTools :: Inspector, defect, P2)

defect

Tracking

(firefox53 fixed)

RESOLVED FIXED
Firefox 53
Tracking Status
firefox53 --- fixed

People

(Reporter: ochameau, Assigned: ochameau)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Here is a profile of inspector open:
  https://new.cleopatra.io/public/a59c998a9f498cfea7cb400e635faf1724471316/calltree/?jsOnly&search=installHelperSheet&thread=2

40ms in installHelperSheet mostly spent in loading sdk modules in the child process.
Clear the searchbox on cleapatra to see the whole profile, you will see that this naive function take a significant time to proceed, whereas the only code we have to call is nsIDOMWindowUtils.loadSheet, which we can see here:
https://new.cleopatra.io/public/a59c998a9f498cfea7cb400e635faf1724471316/calltree/?jsOnly&search=loadSheet&thread=2
And takes only 3ms...
Sorry Alex, I'm going away for a couple of weeks and won't have time to review this change before. Feel free to ask someone else for a review if you want it done sooner.
Comment on attachment 8820041 [details]
Bug 1324565 - Remove dependency to sdk/page-mod from inspector highlighter.

https://reviewboard.mozilla.org/r/99572/#review103820
Attachment #8820041 - Flags: review?(pbrosset) → review+
Inspector bug triage (filter on CLIMBING SHOES).
Priority: -- → P2
Pushed by apoirot@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5fbf1ba06cac
Remove dependency to sdk/page-mod from inspector highlighter. r=pbro
https://hg.mozilla.org/mozilla-central/rev/5fbf1ba06cac
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 53
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: