Closed
Bug 1521540
Opened 6 years ago
Closed 6 years ago
improve sourceMapURL performance
Categories
(DevTools :: Debugger, enhancement, P2)
DevTools
Debugger
Tracking
(firefox66 fixed)
RESOLVED
FIXED
Firefox 66
Tracking | Status | |
---|---|---|
firefox66 | --- | fixed |
People
(Reporter: jlast, Assigned: jlast)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
General Debugger slowness (https://github.com/devtools-html/debugger.html/issues/7734) helped us find a slow path in sourceMapURL
diff --git a/devtools/server/actors/source.js b/devtools/server/actors/source.js
index 02fa3f38f1e7..13d4f13b908a 100644
--- a/devtools/server/actors/source.js
+++ b/devtools/server/actors/source.js
@@ -187,6 +187,15 @@ const SourceActor = ActorClassWithSpec(sourceSpec, {
return this._addonPath;
},
+ get sourceMapURL() {
+ if (this._sourceMapURL) {
+ return this._sourceMapURL;
+ }
+
+ this._sourceMapURL = source ? source.sourceMapURL : null
+ return this._sourceMapURL;
+ },
+
get isCacheEnabled() {
if (this.threadActor._parent._getCacheDisabled) {
return !this.threadActor._parent._getCacheDisabled();
@@ -209,7 +218,7 @@ const SourceActor = ActorClassWithSpec(sourceSpec, {
addonID: this._addonID,
addonPath: this._addonPath,
isBlackBoxed: this.threadActor.sources.isBlackBoxed(this.url),
- sourceMapURL: source ? source.sourceMapURL : null,
+ sourceMapURL: this.sourceMapURL,
introductionUrl: introductionUrl ? introductionUrl.split(" -> ").pop() : null,
introductionType: source ? source.introductionType : null,
};
we could also memoize here which would be better?
Assignee | ||
Comment 1•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Priority: -- → P2
Assignee | ||
Comment 2•6 years ago
|
||
I'm going to re-purpose this bug and focus on the fact that serializing the source actor for frame forms can be slow because of sourceMapURL.
Assignee | ||
Updated•6 years ago
|
Blocks: dbg-perf-q1
Assignee | ||
Comment 3•6 years ago
|
||
Pushed by jlaster@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/e3f2ecc94174
Replace Frame.source form with Frame.actor. r=lsmyth
Comment 5•6 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 6 years ago
status-firefox66:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 66
Updated•6 years ago
|
Assignee: nobody → jlaster
You need to log in
before you can comment on or make changes to this bug.
Description
•