summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/devtools/front_end/profiler/ProfileView.js
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2018-08-28 15:28:34 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2018-08-28 13:54:51 +0000
commit2a19c63448c84c1805fb1a585c3651318bb86ca7 (patch)
treeeb17888e8531aa6ee5e85721bd553b832a7e5156 /chromium/third_party/blink/renderer/devtools/front_end/profiler/ProfileView.js
parentb014812705fc80bff0a5c120dfcef88f349816dc (diff)
downloadqtwebengine-chromium-2a19c63448c84c1805fb1a585c3651318bb86ca7.tar.gz
BASELINE: Update Chromium to 69.0.3497.70
Change-Id: I2b7b56e4e7a8b26656930def0d4575dc32b900a0 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/third_party/blink/renderer/devtools/front_end/profiler/ProfileView.js')
-rw-r--r--chromium/third_party/blink/renderer/devtools/front_end/profiler/ProfileView.js29
1 files changed, 25 insertions, 4 deletions
diff --git a/chromium/third_party/blink/renderer/devtools/front_end/profiler/ProfileView.js b/chromium/third_party/blink/renderer/devtools/front_end/profiler/ProfileView.js
index 11c33fc6ae6..c61e126719b 100644
--- a/chromium/third_party/blink/renderer/devtools/front_end/profiler/ProfileView.js
+++ b/chromium/third_party/blink/renderer/devtools/front_end/profiler/ProfileView.js
@@ -75,9 +75,10 @@ Profiler.ProfileView = class extends UI.SimpleView {
];
const optionNames = new Map([
- [Profiler.ProfileView.ViewTypes.Flame, Common.UIString('Chart')],
- [Profiler.ProfileView.ViewTypes.Heavy, Common.UIString('Heavy (Bottom Up)')],
- [Profiler.ProfileView.ViewTypes.Tree, Common.UIString('Tree (Top Down)')],
+ [Profiler.ProfileView.ViewTypes.Flame, ls`Chart`],
+ [Profiler.ProfileView.ViewTypes.Heavy, ls`Heavy (Bottom Up)`],
+ [Profiler.ProfileView.ViewTypes.Tree, ls`Tree (Top Down)`],
+ [Profiler.ProfileView.ViewTypes.Text, ls`Text (Top Down)`],
]);
const options =
@@ -240,6 +241,20 @@ Profiler.ProfileView = class extends UI.SimpleView {
return this._linkifier;
}
+ _ensureTextViewCreated() {
+ if (this._textView)
+ return;
+ this._textView = new UI.SimpleView(ls`Call tree`);
+ this._textView.registerRequiredCSS('profiler/profilesPanel.css');
+ this.populateTextView(this._textView);
+ }
+
+ /**
+ * @param {!UI.SimpleView} view
+ */
+ populateTextView(view) {
+ }
+
/**
* @return {!PerfUI.FlameChartDataProvider}
*/
@@ -300,6 +315,11 @@ Profiler.ProfileView = class extends UI.SimpleView {
this._visibleView = this.dataGrid.asWidget();
this._searchableElement = this.profileDataGridTree;
break;
+ case Profiler.ProfileView.ViewTypes.Text:
+ this._ensureTextViewCreated();
+ this._visibleView = this._textView;
+ this._searchableElement = this._textView;
+ break;
}
const isFlame = this._viewType.get() === Profiler.ProfileView.ViewTypes.Flame;
@@ -377,7 +397,8 @@ Profiler.ProfileView._maxLinkLength = 30;
Profiler.ProfileView.ViewTypes = {
Flame: 'Flame',
Tree: 'Tree',
- Heavy: 'Heavy'
+ Heavy: 'Heavy',
+ Text: 'Text'
};