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

Side by Side Diff: third_party/WebKit/PerformanceTests/TestData/append-child-measure-time.html

Issue 2819343002: Support tracing metrics for measureTime & measureFrameTime method in blink_perf (Closed)
Patch Set: Disable testBlinkPerfTracingMetricsForMeasureTime on Android Created 3 years, 7 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/PerformanceTests/TestData/color-changes-measure-frame-time.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <div id="holder">
5 </div>
6 <script src="../resources/runner.js"></script>
7 </script>
8 <script>
9 var holderElement = document.getElementById("holder");
10
11 PerfTestRunner.measureTime({
12 description: "Measures performance of layout when adding many child elements .",
13
14 setup: function() {
15 while (holderElement.firstChild) {
16 holderElement.removeChild(holderElement.firstChild);
17 }
18 },
19
20 run: function() {
21 for (var i = 0; i < 50; ++i) {
22 var element = document.createElement("div");
23 element.title = 'dummy';
24 element.innerText = "FOO";
25 holderElement.appendChild(element);
26 PerfTestRunner.forceLayout();
27 }
28 },
29 warmUpCount: 3,
30 iterationCount: 10,
31 tracingCategories: 'blink',
32 traceEventsToMeasure: ['FrameView::layout', 'UpdateLayoutTree']
33 });
34 </script>
35 </body>
36 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/PerformanceTests/TestData/color-changes-measure-frame-time.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698