Lines Matching refs:rootParser
564 static float accountingGetCurrentAmplification(XML_Parser rootParser);
567 static void accountingReportDiff(XML_Parser rootParser,
7508 accountingGetCurrentAmplification(XML_Parser rootParser) { in accountingGetCurrentAmplification() argument
7510 = rootParser->m_accounting.countBytesDirect in accountingGetCurrentAmplification()
7511 + rootParser->m_accounting.countBytesIndirect; in accountingGetCurrentAmplification()
7513 = rootParser->m_accounting.countBytesDirect in accountingGetCurrentAmplification()
7515 / (float)(rootParser->m_accounting.countBytesDirect)) in accountingGetCurrentAmplification()
7517 assert(! rootParser->m_parentParser); in accountingGetCurrentAmplification()
7523 const XML_Parser rootParser = getRootParserOf(originParser, NULL); in accountingReportStats() local
7524 assert(! rootParser->m_parentParser); in accountingReportStats()
7526 if (rootParser->m_accounting.debugLevel < 1) { in accountingReportStats()
7531 = accountingGetCurrentAmplification(rootParser); in accountingReportStats()
7535 (void *)rootParser, rootParser->m_accounting.countBytesDirect, in accountingReportStats()
7536 rootParser->m_accounting.countBytesIndirect, in accountingReportStats()
7546 accountingReportDiff(XML_Parser rootParser, in accountingReportDiff() argument
7550 assert(! rootParser->m_parentParser); in accountingReportDiff()
7563 if ((rootParser->m_accounting.debugLevel >= 3) in accountingReportDiff()
7601 const XML_Parser rootParser in accountingDiffTolerated() local
7603 assert(! rootParser->m_parentParser); in accountingDiffTolerated()
7606 = (account == XML_ACCOUNT_DIRECT) && (originParser == rootParser); in accountingDiffTolerated()
7610 = isDirect ? &rootParser->m_accounting.countBytesDirect in accountingDiffTolerated()
7611 : &rootParser->m_accounting.countBytesIndirect; in accountingDiffTolerated()
7619 = rootParser->m_accounting.countBytesDirect in accountingDiffTolerated()
7620 + rootParser->m_accounting.countBytesIndirect; in accountingDiffTolerated()
7622 = accountingGetCurrentAmplification(rootParser); in accountingDiffTolerated()
7624 = (countBytesOutput < rootParser->m_accounting.activationThresholdBytes) in accountingDiffTolerated()
7626 <= rootParser->m_accounting.maximumAmplificationFactor); in accountingDiffTolerated()
7628 if (rootParser->m_accounting.debugLevel >= 2) { in accountingDiffTolerated()
7629 accountingReportStats(rootParser, ""); in accountingDiffTolerated()
7630 accountingReportDiff(rootParser, levelsAwayFromRootParser, before, after, in accountingDiffTolerated()
7652 entityTrackingReportStats(XML_Parser rootParser, ENTITY *entity, in entityTrackingReportStats() argument
7654 assert(! rootParser->m_parentParser); in entityTrackingReportStats()
7655 if (rootParser->m_entity_stats.debugLevel < 1) in entityTrackingReportStats()
7667 (void *)rootParser, rootParser->m_entity_stats.countEverOpened, in entityTrackingReportStats()
7668 rootParser->m_entity_stats.currentDepth, in entityTrackingReportStats()
7669 rootParser->m_entity_stats.maximumDepthSeen, in entityTrackingReportStats()
7670 (rootParser->m_entity_stats.currentDepth - 1) * 2, "", in entityTrackingReportStats()
7677 const XML_Parser rootParser = getRootParserOf(originParser, NULL); in entityTrackingOnOpen() local
7678 assert(! rootParser->m_parentParser); in entityTrackingOnOpen()
7680 rootParser->m_entity_stats.countEverOpened++; in entityTrackingOnOpen()
7681 rootParser->m_entity_stats.currentDepth++; in entityTrackingOnOpen()
7682 if (rootParser->m_entity_stats.currentDepth in entityTrackingOnOpen()
7683 > rootParser->m_entity_stats.maximumDepthSeen) { in entityTrackingOnOpen()
7684 rootParser->m_entity_stats.maximumDepthSeen++; in entityTrackingOnOpen()
7687 entityTrackingReportStats(rootParser, entity, "OPEN ", sourceLine); in entityTrackingOnOpen()
7692 const XML_Parser rootParser = getRootParserOf(originParser, NULL); in entityTrackingOnClose() local
7693 assert(! rootParser->m_parentParser); in entityTrackingOnClose()
7695 entityTrackingReportStats(rootParser, entity, "CLOSE", sourceLine); in entityTrackingOnClose()
7696 rootParser->m_entity_stats.currentDepth--; in entityTrackingOnClose()
7701 XML_Parser rootParser = parser; in getRootParserOf() local
7703 while (rootParser->m_parentParser) { in getRootParserOf()
7704 rootParser = rootParser->m_parentParser; in getRootParserOf()
7707 assert(! rootParser->m_parentParser); in getRootParserOf()
7711 return rootParser; in getRootParserOf()