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

Unified Diff: third_party/WebKit/Source/devtools/front_end/profiler/CPUProfileView.js

Issue 2466123002: DevTools: reformat front-end code to match chromium style. (Closed)
Patch Set: Created 4 years, 1 month 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/profiler/CPUProfileView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/profiler/CPUProfileView.js b/third_party/WebKit/Source/devtools/front_end/profiler/CPUProfileView.js
index 7adcc93e91bbf142b65395c0366cd990e6b6c51a..4a7707dade90881570e1f051f917f20f6dbc55e0 100644
--- a/third_party/WebKit/Source/devtools/front_end/profiler/CPUProfileView.js
+++ b/third_party/WebKit/Source/devtools/front_end/profiler/CPUProfileView.js
@@ -366,6 +366,23 @@ WebInspector.CPUFlameChartDataProvider = function(cpuProfile, target)
this._cpuProfile = cpuProfile;
};
+/**
+ * @constructor
+ * @param {number} depth
+ * @param {number} duration
+ * @param {number} startTime
+ * @param {number} selfTime
+ * @param {!WebInspector.CPUProfileNode} node
+ */
+WebInspector.CPUFlameChartDataProvider.ChartEntry = function(depth, duration, startTime, selfTime, node)
+{
+ this.depth = depth;
+ this.duration = duration;
+ this.startTime = startTime;
+ this.selfTime = selfTime;
+ this.node = node;
+};
+
WebInspector.CPUFlameChartDataProvider.prototype = {
/**
* @override
@@ -373,24 +390,7 @@ WebInspector.CPUFlameChartDataProvider.prototype = {
*/
_calculateTimelineData: function()
{
- /**
- * @constructor
- * @param {number} depth
- * @param {number} duration
- * @param {number} startTime
- * @param {number} selfTime
- * @param {!WebInspector.CPUProfileNode} node
- */
- function ChartEntry(depth, duration, startTime, selfTime, node)
- {
- this.depth = depth;
- this.duration = duration;
- this.startTime = startTime;
- this.selfTime = selfTime;
- this.node = node;
- }
-
- /** @type {!Array.<?ChartEntry>} */
+ /** @type {!Array.<?WebInspector.CPUFlameChartDataProvider.ChartEntry>} */
var entries = [];
/** @type {!Array.<number>} */
var stack = [];
@@ -413,7 +413,7 @@ WebInspector.CPUFlameChartDataProvider.prototype = {
function onCloseFrame(depth, node, startTime, totalTime, selfTime)
{
var index = stack.pop();
- entries[index] = new ChartEntry(depth, totalTime, startTime, selfTime, node);
+ entries[index] = new WebInspector.CPUFlameChartDataProvider.ChartEntry(depth, totalTime, startTime, selfTime, node);
maxDepth = Math.max(maxDepth, depth);
}
this._cpuProfile.forEachFrame(onOpenFrame, onCloseFrame);

Powered by Google App Engine
This is Rietveld 408576698