{
function format(record)
{
- if (record.type === WebInspector.TimelineModel.RecordType.EvaluateScript)
+ if (record.type() === WebInspector.TimelineModel.RecordType.EvaluateScript)
InspectorTest.printTimelineRecordProperties(record);
- else if (record.type === WebInspector.TimelineModel.RecordType.ParseHTML) {
+ else if (record.type() === WebInspector.TimelineModel.RecordType.ParseHTML) {
var children = [];
var skipCategories = { rendering: true, painting: true };
- for (var i = 0; i < record.children.length; ++i) {
- var modelRecord = new WebInspector.TimelineModel.RecordImpl(WebInspector.panels.timeline._model, record.children[i], null);
- if (!skipCategories[modelRecord.category().name])
- children.push(record.children[i]);
+ for (var i = 0; i < record.children().length; ++i) {
+ var modelRecord = new WebInspector.TimelineModel.RecordImpl(WebInspector.panels.timeline._model, record.children()[i], null);
+ var uiUtils = WebInspector.panels.timeline._uiUtils;
+ if (!skipCategories[uiUtils.categoryForRecord(modelRecord).name])
+ children.push(record.children()[i]);
}
- record.children = children;
- InspectorTest.dumpTimelineRecord(record);
+ record._children = children;
+ InspectorTest.dumpTimelineRecord(record, undefined, undefined, [
+ "ParseHTML",
+ "EvaluateScript",
+ "EventDispatch",
+ "FunctionCall",
+ "TimeStamp",
+ "MarkLoad",
+ "MarkDOMContent"
+ ]);
}
}
InspectorTest.printTimelineRecords(null, format);