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

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

Issue 2623743002: DevTools: extract modules (non-extensions) (Closed)
Patch Set: rebaseline Created 3 years, 11 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/profiler/HeapProfileView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/profiler/HeapProfileView.js b/third_party/WebKit/Source/devtools/front_end/profiler/HeapProfileView.js
index bcfb271a1cae209d2149ff27eb6bb3dcdeef5715..dc811a6c41eb54aef019f33a57821d6be7aea035 100644
--- a/third_party/WebKit/Source/devtools/front_end/profiler/HeapProfileView.js
+++ b/third_party/WebKit/Source/devtools/front_end/profiler/HeapProfileView.js
@@ -37,7 +37,7 @@ Profiler.HeapProfileView = class extends Profiler.ProfileView {
/**
* @override
- * @return {!UI.FlameChartDataProvider}
+ * @return {!PerfUI.FlameChartDataProvider}
*/
createFlameChartDataProvider() {
return new Profiler.HeapFlameChartDataProvider(this.profile, this._profileHeader.target());
@@ -136,7 +136,8 @@ Profiler.SamplingHeapProfileType = class extends Profiler.ProfileType {
this.dispatchEventToListeners(Profiler.ProfileType.Events.ProfileComplete, recordedProfile);
}
- this.profileBeingRecorded().target()
+ this.profileBeingRecorded()
+ .target()
.heapProfilerModel.stopSampling()
.then(didStopProfiling.bind(this))
.then(SDK.targetManager.resumeAllTargets.bind(SDK.targetManager))
@@ -327,7 +328,7 @@ Profiler.HeapFlameChartDataProvider = class extends Profiler.ProfileFlameChartDa
/**
* @override
- * @return {!UI.FlameChart.TimelineData}
+ * @return {!PerfUI.FlameChart.TimelineData}
*/
_calculateTimelineData() {
/**
@@ -368,7 +369,7 @@ Profiler.HeapFlameChartDataProvider = class extends Profiler.ProfileFlameChartDa
this._maxStackDepth = maxDepth + 1;
this._entryNodes = entryNodes;
- this._timelineData = new UI.FlameChart.TimelineData(entryLevels, entryTotalTimes, entryStartTimes, null);
+ this._timelineData = new PerfUI.FlameChart.TimelineData(entryLevels, entryTotalTimes, entryStartTimes, null);
return this._timelineData;
}

Powered by Google App Engine
This is Rietveld 408576698