Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(677)

Unified Diff: third_party/WebKit/Source/devtools/front_end/workspace/UISourceCode.js

Issue 1748993002: DevTools: Initial implementation of line-level CPU profile. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove JSSF to sdk dependency Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/workspace/UISourceCode.js
diff --git a/third_party/WebKit/Source/devtools/front_end/workspace/UISourceCode.js b/third_party/WebKit/Source/devtools/front_end/workspace/UISourceCode.js
index e535581587b9244229274af30104a06f603a2453..dba715b571557b05fae8c49020bc9ccaeb468ff9 100644
--- a/third_party/WebKit/Source/devtools/front_end/workspace/UISourceCode.js
+++ b/third_party/WebKit/Source/devtools/front_end/workspace/UISourceCode.js
@@ -71,6 +71,7 @@ WebInspector.UISourceCode.Events = {
SourceMappingChanged: "SourceMappingChanged",
MessageAdded: "MessageAdded",
MessageRemoved: "MessageRemoved",
+ ProfileInfoUpdated: "ProfileInfoUpdated"
}
WebInspector.UISourceCode.prototype = {
@@ -644,6 +645,23 @@ WebInspector.UISourceCode.prototype = {
this.dispatchEventToListeners(WebInspector.UISourceCode.Events.MessageRemoved, message);
},
+ /**
+ * @param {?Map<number, number>} profileInfo
+ */
+ setProfileInfo: function(profileInfo)
+ {
+ this._profileInfo = profileInfo;
+ this.dispatchEventToListeners(WebInspector.UISourceCode.Events.ProfileInfoUpdated);
+ },
+
+ /**
+ * @return {!Map<number, number>}
+ */
+ profileInfo: function()
+ {
+ return this._profileInfo;
+ },
+
__proto__: WebInspector.Object.prototype
}
@@ -837,7 +855,8 @@ WebInspector.UISourceCode.Message.prototype = {
/**
* @return {!WebInspector.TextRange}
*/
- range: function() {
+ range: function()
+ {
return this._range;
},

Powered by Google App Engine
This is Rietveld 408576698