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

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

Issue 320523004: Timeline: fill frames according to CPU time spent per event category (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 6 years, 6 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/timeline-frame-model.html
diff --git a/LayoutTests/inspector/timeline/timeline-frame-model.html b/LayoutTests/inspector/timeline/timeline-frame-model.html
index 68ad9cdf520072af9e365d73d9e8991a1310fad0..f9aa368571b473ce471dc9a9c3272165aaa4a732 100644
--- a/LayoutTests/inspector/timeline/timeline-frame-model.html
+++ b/LayoutTests/inspector/timeline/timeline-frame-model.html
@@ -3,32 +3,6 @@
<script src="../../http/tests/inspector/inspector-test.js"></script>
<script src="../../http/tests/inspector/timeline-test.js"></script>
<script>
-function initialize_timelineFrameModel()
-{
-
-InspectorTest.dumpFrame = function(frame)
-{
- var fieldsToDump = ["cpuTime", "duration", "startTime", "endTime", "id", "mainThreadFrameId", "isBackground", "timeByCategory", "other", "scripting", "painting", "rendering", "committedFrom"];
- function formatFields(object)
- {
- var result = {};
- for (var key in object) {
- if (fieldsToDump.indexOf(key) < 0)
- continue;
- var value = object[key];
- if (typeof value === "number")
- value = Number(value.toFixed(7));
- else if (typeof value === "object" && value)
- value = formatFields(value);
- result[key] = value;
- }
- return result;
- }
- InspectorTest.addObject(formatFields(frame));
-}
-
-}
-
function test()
{
var testData = {
« no previous file with comments | « LayoutTests/http/tests/inspector/timeline-test.js ('k') | LayoutTests/inspector/timeline/trace-event-self-time.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698