Index: third_party/WebKit/Source/devtools/front_end/profiler/ProfileView.js |
diff --git a/third_party/WebKit/Source/devtools/front_end/profiler/ProfileView.js b/third_party/WebKit/Source/devtools/front_end/profiler/ProfileView.js |
index ba20135d5767685b563dc6787213a96a2889d0c4..3976560684b8900987647b6d2e934ef3948b5308 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/profiler/ProfileView.js |
+++ b/third_party/WebKit/Source/devtools/front_end/profiler/ProfileView.js |
@@ -72,6 +72,21 @@ WebInspector.ProfileView.ViewTypes = { |
Heavy: "Heavy" |
} |
+/** |
+ * @param {!Array<!{title: string, value: string}>} entryInfo |
+ * @return {!Element} |
+ */ |
+WebInspector.ProfileView.buildPopoverTable = function(entryInfo) |
+{ |
+ var table = createElement("table"); |
+ for (var entry of entryInfo) { |
+ var row = table.createChild("tr"); |
+ row.createChild("td").textContent = entry.title; |
+ row.createChild("td").textContent = entry.value; |
+ } |
+ return table; |
+} |
+ |
WebInspector.ProfileView.prototype = { |
focus: function() |
{ |