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

Unified Diff: LayoutTests/inspector/timeline/tracing/frame-model.html

Issue 477153005: DevTools: adopt existing Timeline tests for tracing based Timeline (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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: LayoutTests/inspector/timeline/tracing/frame-model.html
diff --git a/LayoutTests/inspector/timeline/tracing/frame-model.html b/LayoutTests/inspector/timeline/tracing/frame-model.html
deleted file mode 100644
index bfb69bd50e37d0c050326054f7465cb2de202e61..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector/timeline/tracing/frame-model.html
+++ /dev/null
@@ -1,243 +0,0 @@
-<html>
-<head>
-<script src="../../../http/tests/inspector/inspector-test.js"></script>
-<script src="../../../http/tests/inspector/timeline-test.js"></script>
-<script src="../../tracing-test.js"></script>
-<script>
-function test()
-{
- var sessionId = "4.20";
- var mainThread = 1;
- var implThread = 2;
- var rasterThread = 3;
- var pid = 100;
-
- var commonMetadata = [
- {
- "args": { "sessionId": sessionId },
- "cat": "disabled-by-default-devtools.timeline",
- "name": "TracingStartedInPage",
- "ph": "I",
- "pid": pid,
- "tid": mainThread,
- "ts": 100,
- },
- {
- "args": { "layerTreeId": 17 },
- "cat": "disabled-by-default-devtools.timeline",
- "name": "SetLayerTreeId",
- "ph": "I",
- "pid": pid,
- "tid": mainThread,
- "ts": 101,
- }
- ];
-
- var testData = {
- "main thread only": [
- {"name": "Program", "ts": 1000000, args: {}, "dur": 3999, "ph": "X", "tid": mainThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "BeginMainThreadFrame", "ts": 1000001, args: {}, "ph": "I", "tid": mainThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "FunctionCall", "ts": 1000002, args: {}, "dur": 3997, "ph": "X", "tid": mainThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
-
- {"name": "Program", "ts": 1016000, args: {}, "dur": 10999, "ph": "X", "tid": mainThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "BeginMainThreadFrame", "ts": 1016001, args: {}, "ph": "I", "tid": mainThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "FunctionCall", "ts": 1016002, args: {}, "dur": 2997, "ph": "X", "tid": mainThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "StyleRecalculate", "ts": 1019000, args: {}, "dur": 1999, "ph": "X", "tid": mainThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "Layout", "ts": 1021000, args: { "beginData": { "frame": 0x12345678 }, "endData": { "rootNode": 1} }, "dur": 5999, "ph": "X", "tid": mainThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
-
- {"name": "Program", "ts": 1032000, args: {}, "dur": 1999, "ph": "X", "tid": mainThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "BeginMainThreadFrame", "ts": 1032001, args: {}, "ph": "I", "tid": mainThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
-
- {"name": "Program", "ts": 1048000, args: {}, "dur": 1999, "ph": "X", "tid": mainThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "BeginMainThreadFrame", "ts": 1048001, args: {}, "ph": "I", "tid": mainThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- ],
- "impl-side only": [
- {"name": "BeginFrame", "ts": 1000000, args: { "layerTreeId": 17 }, "ph": "I", "tid": implThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "BeginFrame", "ts": 1016000, args: { "layerTreeId": 17 }, "ph": "I", "tid": implThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "DrawFrame", "ts": 1030000, args: { "layerTreeId": 17 }, "ph": "I", "tid": implThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "BeginFrame", "ts": 1032000, args: { "layerTreeId": 17 }, "ph": "I", "tid": implThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "DrawFrame", "ts": 1046000, args: { "layerTreeId": 17 }, "ph": "I", "tid": implThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "BeginFrame", "ts": 1048000, args: { "layerTreeId": 17 }, "ph": "I", "tid": implThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "BeginFrame", "ts": 1064000, args: { "layerTreeId": 17 }, "ph": "I", "tid": implThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "RasterTask", "ts": 1065001, args: {}, "ph": "X", "dur": 999, "tid": rasterThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "RasterTask", "ts": 1066001, args: {}, "ph": "X", "dur": 999, "tid": rasterThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "RasterTask", "ts": 1067001, args: {}, "ph": "X", "dur": 999, "tid": rasterThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "DrawFrame", "ts": 1078000, args: { "layerTreeId": 17 }, "ph": "I", "tid": implThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "BeginFrame", "ts": 1080000, args: { "layerTreeId": 17 }, "ph": "I", "tid": implThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "DrawFrame", "ts": 1081000, args: { "layerTreeId": 17 }, "ph": "I", "tid": implThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "Program", "ts": 10820000, args: {}, "dur": 100, "ph": "X", "tid": mainThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- ],
- "impl-side with commits": [
- {"name": "BeginFrame", "ts": 1000000, args: { "layerTreeId": 17 }, "ph": "I", "tid": implThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "RequestMainThreadFrame", "ts": 1000001, args: { "layerTreeId": 17 }, "ph": "I", "tid": implThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "DrawFrame", "ts": 1014000, args: { "layerTreeId": 17 }, "ph": "I", "tid": implThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "BeginFrame", "ts": 1016000, args: { "layerTreeId": 17 }, "ph": "I", "tid": implThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "DrawFrame", "ts": 1030000, args: { "layerTreeId": 17 }, "ph": "I", "tid": implThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "BeginFrame", "ts": 1032000, args: { "layerTreeId": 17 }, "ph": "I", "tid": implThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
-
- {"name": "Program", "ts": 1001000, args: {}, "dur": 32999, "ph": "X", "tid": mainThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "BeginMainThreadFrame", "ts": 1001001, args: {}, "ph": "I", "tid": mainThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "FunctionCall", "ts": 1001002, args: {}, "dur": 17997, "ph": "X", "tid": mainThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "StyleRecalculate", "ts": 1019000, args: {}, "dur": 1999, "ph": "X", "tid": mainThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "Layout", "ts": 1021000, args: { "beginData": { "frame": 0x12345678 }, "endData": { "rootNode": 1} }, "dur": 11999, "ph": "X", "tid": mainThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "CompositeLayers", "ts": 1032000, args: { "layerTreeId": 17 }, "dur": 1999, "ph": "X", "tid": mainThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
-
- {"name": "Program", "ts": 1034000, args: {}, "dur": 5999, "ph": "X", "tid": mainThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "FunctionCall", "ts": 1034002, args: {}, "dur": 5997, "ph": "X", "tid": mainThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
-
- {"name": "ActivateLayerTree", "ts": 1045001, args: { "layerTreeId": 17 }, "ph": "I", "tid": implThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "DrawFrame", "ts": 1046000, args: { "layerTreeId": 17 }, "ph": "I", "tid": implThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "BeginFrame", "ts": 1048001, args: { "layerTreeId": 17 }, "ph": "I", "tid": implThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "ActivateLayerTree", "ts": 1060001, args: { "layerTreeId": 17 }, "ph": "I", "tid": implThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "DrawFrame", "ts": 1062000, args: { "layerTreeId": 17 }, "ph": "I", "tid": implThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
-
- {"name": "Program", "ts": 1049000, args: {}, "dur": 11999, "ph": "X", "tid": mainThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "BeginMainThreadFrame", "ts": 1049001, args: {}, "ph": "I", "tid": mainThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "CompositeLayers", "ts": 1050002, args: { "layerTreeId": 17 }, "dur": 10.997, "ph": "X", "tid": mainThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
-
- {"name": "BeginFrame", "ts": 1064000, args: { "layerTreeId": 17 }, "ph": "I", "tid": implThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "RequestMainThreadFrame", "ts": 1064001, args: { "layerTreeId": 17 }, "ph": "I", "tid": implThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
-
- {"name": "Program", "ts": 1065000, args: {}, "dur": 13999, "ph": "X", "tid": mainThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "BeginMainThreadFrame", "ts": 1065001, args: {}, "ph": "I", "tid": mainThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- ],
-
- "impl-side with interleaving commits": [
- {"name": "BeginFrame", "ts": 1000000, args: { "layerTreeId": 17 }, "ph": "I", "tid": implThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "RequestMainThreadFrame", "ts": 1000001, args: { "layerTreeId": 17 }, "ph": "I", "tid": implThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "ActivateLayerTree", "ts": 1014000, args: { "layerTreeId": 17 }, "ph": "I", "tid": implThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "DrawFrame", "ts": 1014001, args: { "layerTreeId": 17 }, "ph": "I", "tid": implThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
-
- {"name": "Program", "ts": 1001000, args: {}, "dur": 12999, "ph": "X", "tid": mainThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "BeginMainThreadFrame", "ts": 1001001, args: {}, "ph": "I", "tid": mainThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "CompositeLayers", "ts": 1001002, args: { "layerTreeId": 17 }, "dur": 12.997, "ph": "X", "tid": mainThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
-
- {"name": "BeginFrame", "ts": 1016000, args: { "layerTreeId": 17 }, "ph": "I", "tid": implThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "RequestMainThreadFrame", "ts": 1016001, args: { "layerTreeId": 17 }, "ph": "I", "tid": implThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "ActivateLayerTree", "ts": 1030000, args: { "layerTreeId": 17 }, "ph": "I", "tid": implThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "DrawFrame", "ts": 1030001, args: { "layerTreeId": 17 }, "ph": "I", "tid": implThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
-
- {"name": "Program", "ts": 1017000, args: {}, "dur": 12999, "ph": "X", "tid": mainThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "BeginMainThreadFrame", "ts": 1017001, args: {}, "ph": "I", "tid": mainThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "FunctionCall", "ts": 1017002, args: {}, "dur": 8997, "ph": "X", "tid": mainThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "CompositeLayers", "ts": 1026000, args: { "layerTreeId": 17 }, "dur": 3999, "ph": "X", "tid": mainThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
-
- {"name": "BeginFrame", "ts": 1032000, args: { "layerTreeId": 17 }, "ph": "I", "tid": implThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "RequestMainThreadFrame", "ts": 1032001, args: { "layerTreeId": 17 }, "ph": "I", "tid": implThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "ActivateLayerTree", "ts": 1046000, args: { "layerTreeId": 17 }, "ph": "I", "tid": implThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "DrawFrame", "ts": 1046001, args: { "layerTreeId": 17 }, "ph": "I", "tid": implThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
-
- {"name": "Program", "ts": 1033000, args: {}, "dur": 12999, "ph": "X", "tid": mainThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "BeginMainThreadFrame", "ts": 1033001, args: {}, "ph": "I", "tid": mainThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "CompositeLayers", "ts": 1033002, args: { "layerTreeId": 17 }, "dur": 7999, "ph": "X", "tid": mainThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "FunctionCall", "ts": 1041002, args: {}, "dur": 4997, "ph": "X", "tid": mainThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
-
- {"name": "BeginFrame", "ts": 1048000, args: { "layerTreeId": 17 }, "ph": "I", "tid": implThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "Program", "ts": 1049000, args: {}, "dur": 999, "ph": "X", "tid": mainThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- ],
- "pre-frame time accounting": [
- {"name": "Program", "ts": 1000000, args: {}, "dur": 29999, "ph": "X", "tid": mainThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "FunctionCall", "ts": 1000002, args: {}, "dur": 28997, "ph": "X", "tid": mainThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "ScheduleStyleRecalculation", "ts": 1001001, args: {}, "ph": "I", "tid": mainThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
-
- {"name": "BeginFrame", "ts": 1032000, args: { "layerTreeId": 17 }, "ph": "I", "tid": implThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "RequestMainThreadFrame", "ts": 1032001, args: { "layerTreeId": 17 }, "ph": "I", "tid": implThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "ActivateLayerTree", "ts": 1034001, args: { "layerTreeId": 17 }, "ph": "I", "tid": implThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "DrawFrame", "ts": 1035001, args: { "layerTreeId": 17 }, "ph": "I", "tid": implThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
-
- {"name": "Program", "ts": 1033000, args: {}, "dur": 999, "ph": "X", "tid": mainThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "BeginMainThreadFrame", "ts": 1033001, args: {}, "ph": "I", "tid": mainThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "RecalculateStyles", "ts": 1033002, args: { "layerTreeId": 17 }, "dur": 1398, "ph": "X", "tid": mainThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "CompositeLayers", "ts": 1033401, args: { "layerTreeId": 17 }, "dur": 598, "ph": "X", "tid": mainThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
-
- {"name": "BeginFrame", "ts": 1048000, args: { "layerTreeId": 17 }, "ph": "I", "tid": implThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
-
- {"name": "Program", "ts": 1050000, args: {}, "dur": 14999, "ph": "X", "tid": mainThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "FunctionCall", "ts": 1050002, args: {}, "dur": 8997, "ph": "X", "tid": mainThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "InvalidateLayout", "ts": 1059000, args: {}, "ph": "I", "tid": mainThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
-
- {"name": "DrawFrame", "ts": 1063001, args: { "layerTreeId": 17 }, "ph": "I", "tid": implThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "BeginFrame", "ts": 1064000, args: { "layerTreeId": 17 }, "ph": "I", "tid": implThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "RequestMainThreadFrame", "ts": 1064001, args: { "layerTreeId": 17 }, "ph": "I", "tid": implThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "ActivateLayerTree", "ts": 1071001, args: { "layerTreeId": 17 }, "ph": "I", "tid": implThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "DrawFrame", "ts": 1071002, args: { "layerTreeId": 17 }, "ph": "I", "tid": implThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
-
- {"name": "Program", "ts": 1065000, args: {}, "dur": 5999, "ph": "X", "tid": mainThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "BeginMainThreadFrame", "ts": 1065001, args: {}, "ph": "I", "tid": mainThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "Layout", "ts": 1065002, args: { "beginData": { "frame": 0x12345678 }, "endData": { "rootNode": 1} }, "dur": 2998, "ph": "X", "tid": mainThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "CompositeLayers", "ts": 1068001, args: { "layerTreeId": 17 }, "dur": 2998, "ph": "X", "tid": mainThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
-
- {"name": "BeginFrame", "ts": 1080000, args: { "layerTreeId": 17 }, "ph": "I", "tid": implThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "RequestMainThreadFrame", "ts": 1080001, args: { "layerTreeId": 17 }, "ph": "I", "tid": implThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "ActivateLayerTree", "ts": 1081001, args: { "layerTreeId": 17 }, "ph": "I", "tid": implThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "DrawFrame", "ts": 1081002, args: { "layerTreeId": 17 }, "ph": "I", "tid": implThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
-
- {"name": "Program", "ts": 1073000, args: {}, "dur": 7999, "ph": "X", "tid": mainThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "ScrollLayer", "ts": 1073002, args: { "data": { "nodeId": 1 } }, "dur": 2998, "ph": "X", "tid": mainThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
-
- {"name": "BeginFrame", "ts": 1096000, args: { "layerTreeId": 17 }, "ph": "I", "tid": implThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "ActivateLayerTree", "ts": 1096001, args: { "layerTreeId": 17 }, "ph": "I", "tid": implThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "DrawFrame", "ts": 1096002, args: { "layerTreeId": 17 }, "ph": "I", "tid": implThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
-
- {"name": "Program", "ts": 1081000, args: {}, "dur": 999, "ph": "X", "tid": mainThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "BeginMainThreadFrame", "ts": 1081001, args: {}, "ph": "I", "tid": mainThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "CompositeLayers", "ts": 1081001, args: { "layerTreeId": 17 }, "dur": 998, "ph": "X", "tid": mainThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- ],
- "record processing order": [
- {"name": "DrawFrame", "ts": 1000000, args: { "layerTreeId": 17 }, "ph": "I", "tid": implThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "BeginFrame", "ts": 1000001, args: { "layerTreeId": 17 }, "ph": "I", "tid": implThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "RequestMainThreadFrame", "ts": 1000002, args: { "layerTreeId": 17 }, "ph": "I", "tid": implThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "ActivateLayerTree", "ts": 1013002, args: { "layerTreeId": 17 }, "ph": "I", "tid": implThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "DrawFrame", "ts": 1013005, args: { "layerTreeId": 17 }, "ph": "I", "tid": implThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "BeginFrame", "ts": 1016000, args: { "layerTreeId": 17 }, "ph": "I", "tid": implThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
-
- {"name": "Program", "ts": 1001000, args: {}, "dur": 15999, "ph": "X", "tid": mainThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "BeginMainThreadFrame", "ts": 1001001, args: {}, "ph": "I", "tid": mainThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "FunctionCall", "ts": 1001002, args: {}, "dur": 11997, "ph": "X", "tid": mainThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "CompositeLayers", "ts": 1013002, args: { "layerTreeId": 17 }, "dur": 3997, "ph": "X", "tid": mainThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
-
- {"name": "ActivateLayerTree", "ts": 1030000, args: { "layerTreeId": 17 }, "ph": "I", "tid": implThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "DrawFrame", "ts": 1030001, args: { "layerTreeId": 17 }, "ph": "I", "tid": implThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "BeginFrame", "ts": 1031000, args: { "layerTreeId": 17 }, "ph": "I", "tid": implThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "RequestMainThreadFrame", "ts": 1031002, args: { "layerTreeId": 17 }, "ph": "I", "tid": implThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "ActivateLayerTree", "ts": 1061000, args: { "layerTreeId": 17 }, "ph": "I", "tid": implThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "DrawFrame", "ts": 1062001, args: { "layerTreeId": 17 }, "ph": "I", "tid": implThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
-
- {"name": "Program", "ts": 1032000, args: {}, "dur": 31999, "ph": "X", "tid": mainThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "BeginMainThreadFrame", "ts": 1032001, args: {}, "ph": "I", "tid": mainThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "FunctionCall", "ts": 1032002, args: {}, "dur": 10997, "ph": "X", "tid": mainThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- {"name": "CompositeLayers", "ts": 1043002, args: { "layerTreeId": 17 }, "dur": 19997, "ph": "X", "tid": mainThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
-
- {"name": "DrawFrame", "ts": 1080001, args: { "layerTreeId": 17 }, "ph": "I", "tid": implThread, "pid": 100, "cat":"disabled-by-default.devtools.timeline" },
- ]
- };
-
- var frameModel = new WebInspector.TracingTimelineFrameModel(WebInspector.targetManager.mainTarget());
-
- function loadEvents(events)
- {
- var tracingTimelineModel = InspectorTest.tracingTimelineModel;
- tracingTimelineModel.setEventsForTest(sessionId, events);
- frameModel.reset();
- frameModel.addTraceEvents(tracingTimelineModel.inspectedTargetEvents());
- }
-
- for (var testName in testData) {
- var data = testData[testName];
- loadEvents(commonMetadata.concat(data))
- InspectorTest.addResult("Test: " + testName);
- frameModel.frames().forEach(InspectorTest.dumpFrame, InspectorTest);
- }
- InspectorTest.completeTest();
-}
-
-</script>
-</head>
-
-<body onload="runTest()">
-<p>
-Test the frames are correctly built based on trace events
-</p>
-
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698