forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reland "DevTools: Support CPU profiles in OOPIFs"
This is a reland of 91d5ec5 Original change's description: > DevTools: Support CPU profiles in OOPIFs > > BUG=832313,820250 > > Change-Id: I53d730d4ff7e747eb0ccfe9a055738c1fe9858cf > Reviewed-on: https://chromium-review.googlesource.com/1011350 > Commit-Queue: Alexei Filippov <alph@chromium.org> > Reviewed-by: Dmitry Gozman <dgozman@chromium.org> > Cr-Commit-Position: refs/heads/master@{#553688} TBR=dgozman Bug: 832313, 820250 Change-Id: I177e0d404b8efe595ddc680368b21c32160cd5de Reviewed-on: https://chromium-review.googlesource.com/1065230 Commit-Queue: Alexei Filippov <alph@chromium.org> Reviewed-by: Alexei Filippov <alph@chromium.org> Cr-Commit-Position: refs/heads/master@{#560049}
- Loading branch information
Showing
6 changed files
with
111 additions
and
12 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
.../WebKit/LayoutTests/http/tests/devtools/oopif/oopif-performance-cpu-profiles-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Test CPU profiles are recorded for OOPIFs. | ||
|
||
name: CrRendererMain | ||
url: http://127.0.0.1:8000/devtools/oopif/resources/page.html | ||
has CpuProfile: true | ||
|
||
name: CrRendererMain | ||
url: http://devtools.oopif.test:8000/devtools/oopif/resources/inner-iframe.html?second | ||
has CpuProfile: true | ||
|
||
|
24 changes: 24 additions & 0 deletions
24
third_party/WebKit/LayoutTests/http/tests/devtools/oopif/oopif-performance-cpu-profiles.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// Copyright 2018 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
(async function() { | ||
TestRunner.addResult(`Test CPU profiles are recorded for OOPIFs.\n`); | ||
|
||
await TestRunner.loadModule('performance_test_runner'); | ||
await TestRunner.showPanel('timeline'); | ||
|
||
await PerformanceTestRunner.startTimeline(); | ||
await TestRunner.navigatePromise('resources/page.html'); | ||
await PerformanceTestRunner.stopTimeline(); | ||
|
||
for (const track of PerformanceTestRunner.timelineModel().tracks().sort((a, b) => a.url > b.url)) { | ||
if (track.type !== TimelineModel.TimelineModel.TrackType.MainThread) | ||
continue; | ||
TestRunner.addResult(`name: ${track.name}`); | ||
TestRunner.addResult(`url: ${track.url}`); | ||
TestRunner.addResult(`has CpuProfile: ${track.thread.events().some(e => e.name === 'CpuProfile')}\n`); | ||
} | ||
|
||
TestRunner.completeTest(); | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters