Lines Matching refs:parser

82     return fileAndParsers.map((fileAndParser) => fileAndParser.parser);
85 remove(parser: Parser<object>) {
87 (fileAndParser) => fileAndParser.parser !== parser,
90 (fileAndParser) => fileAndParser.parser !== parser,
148 this.legacyParsers.forEach(({file, parser}) => {
149 const traceType = parser.getTraceType();
210 const {parser} = fileAndParser; constant
213 parser,
218 legacyParsersBeingLoaded.set(parser.getTraceType(), parser);
232 parsers.forEach((parser) => {
233 this.perfettoParsers.push(new FileAndParser(file, parser));
240 fileAndParser.parser.getTraceType() === parser.getTraceType();
243 new TraceOverridden(fileAndParser.parser.getDescriptors().join()),
261 fileAndParser.parser.getTraceType() === newParser.getTraceType(),
284 allParsers.map(({parser, file}) => parser),
287 allParsers.map(({parser, file}) => parser),
290 newLegacyParsers = newLegacyParsers.filter(({parser, file}) => {
291 const monotonicOffset = parser.getRealToMonotonicTimeOffsetNs();
304 const bootTimeOffset = parser.getRealToBootTimeOffsetNs();
327 .map(({parser}) => {
328 const timestamps = parser.getTimestamps();
341 return newLegacyParsers.filter(({parser, file}) => {
344 if (parser.getTraceType() === TraceType.WM_TRANSITION) {
348 let timestamps = parser.getTimestamps();
372 (entry) => entry.parser.getTraceType() === TraceType.SCREEN_RECORDING,
375 (entry) => entry.parser.getTraceType() === TraceType.SCREEN_RECORDING,
386 fileAndParser.parser.getTraceType() === TraceType.SCREENSHOT,
390 fileAndParser.parser.getTraceType() === TraceType.SCREENSHOT,
396 fileAndParser.parser.getDescriptors().join(),
400 this.remove(fileAndParser.parser);
406 newScreenshotParser.parser.getDescriptors().join(),
414 fileAndParser.parser.getTraceType() !== TraceType.SCREENSHOT,
425 newLegacyParsers.find(({parser, file}) => {
427 parser.getRealToBootTimeOffsetNs() !== undefined ||
428 parser.getRealToMonotonicTimeOffsetNs() !== undefined
431 const hasParserWithoutOffset = newLegacyParsers.find(({parser, file}) => {
432 const timestamps = parser.getTimestamps();
435 parser.getRealToBootTimeOffsetNs() === undefined &&
436 parser.getRealToMonotonicTimeOffsetNs() === undefined
441 return newLegacyParsers.filter(({parser, file}) => {
444 (traceType) => parser.getTraceType() === traceType,
450 parser.getRealToMonotonicTimeOffsetNs() !== undefined ||
451 parser.getRealToBootTimeOffsetNs() !== undefined;
454 new TraceHasOldData(parser.getDescriptors().join()),
470 const parser = fileAndParser.parser; constant
472 parser.getTraceType() !== TraceType.SCREENSHOT &&
473 parser.getTraceType() !== TraceType.SCREEN_RECORDING
481 parser.getDescriptors().join(),
488 firstScreenshotOrScreenrecordingParser = parser;