| OLD | NEW |
| 1 var initialize_Timeline = function() { | 1 var initialize_Timeline = function() { |
| 2 | 2 |
| 3 // Scrub values when printing out these properties in the record or data field. | 3 // Scrub values when printing out these properties in the record or data field. |
| 4 InspectorTest.timelinePropertyFormatters = { | 4 InspectorTest.timelinePropertyFormatters = { |
| 5 children: "formatAsTypeName", | 5 children: "formatAsTypeName", |
| 6 endTime: "formatAsTypeName", | 6 endTime: "formatAsTypeName", |
| 7 requestId: "formatAsTypeName", | 7 requestId: "formatAsTypeName", |
| 8 startTime: "formatAsTypeName", | 8 startTime: "formatAsTypeName", |
| 9 stackTrace: "formatAsTypeName", | 9 stackTrace: "formatAsTypeName", |
| 10 url: "formatAsURL", | 10 url: "formatAsURL", |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 { | 278 { |
| 279 this._delegate = delegate; | 279 this._delegate = delegate; |
| 280 this._callback = callback; | 280 this._callback = callback; |
| 281 this._input = input; | 281 this._input = input; |
| 282 this._loadedSize = 0; | 282 this._loadedSize = 0; |
| 283 this._fileSize = input.length; | 283 this._fileSize = input.length; |
| 284 }; | 284 }; |
| 285 | 285 |
| 286 InspectorTest.dumpFrame = function(frame) | 286 InspectorTest.dumpFrame = function(frame) |
| 287 { | 287 { |
| 288 var fieldsToDump = ["cpuTime", "duration", "startTime", "endTime", "id", "ma
inThreadFrameId", "isBackground", "timeByCategory", "other", "scripting", "paint
ing", "rendering", "committedFrom"]; | 288 var fieldsToDump = ["cpuTime", "duration", "startTime", "endTime", "id", "ma
inThreadFrameId", "timeByCategory", "other", "scripting", "painting", "rendering
", "committedFrom"]; |
| 289 function formatFields(object) | 289 function formatFields(object) |
| 290 { | 290 { |
| 291 var result = {}; | 291 var result = {}; |
| 292 for (var key in object) { | 292 for (var key in object) { |
| 293 if (fieldsToDump.indexOf(key) < 0) | 293 if (fieldsToDump.indexOf(key) < 0) |
| 294 continue; | 294 continue; |
| 295 var value = object[key]; | 295 var value = object[key]; |
| 296 if (typeof value === "number") | 296 if (typeof value === "number") |
| 297 value = Number(value.toFixed(7)); | 297 value = Number(value.toFixed(7)); |
| 298 else if (typeof value === "object" && value) | 298 else if (typeof value === "object" && value) |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 340 return this._fileSize; | 340 return this._fileSize; |
| 341 }, | 341 }, |
| 342 | 342 |
| 343 fileName: function() | 343 fileName: function() |
| 344 { | 344 { |
| 345 return "fakeFile"; | 345 return "fakeFile"; |
| 346 } | 346 } |
| 347 }; | 347 }; |
| 348 | 348 |
| 349 }; | 349 }; |
| OLD | NEW |