Lines Matching refs:rootParser
565 static float accountingGetCurrentAmplification(XML_Parser rootParser);
568 static void accountingReportDiff(XML_Parser rootParser,
7635 accountingGetCurrentAmplification(XML_Parser rootParser) { in accountingGetCurrentAmplification() argument
7637 = rootParser->m_accounting.countBytesDirect in accountingGetCurrentAmplification()
7638 + rootParser->m_accounting.countBytesIndirect; in accountingGetCurrentAmplification()
7640 = rootParser->m_accounting.countBytesDirect in accountingGetCurrentAmplification()
7642 / (float)(rootParser->m_accounting.countBytesDirect)) in accountingGetCurrentAmplification()
7644 assert(! rootParser->m_parentParser); in accountingGetCurrentAmplification()
7650 const XML_Parser rootParser = getRootParserOf(originParser, NULL); in accountingReportStats() local
7651 assert(! rootParser->m_parentParser); in accountingReportStats()
7653 if (rootParser->m_accounting.debugLevel < 1) { in accountingReportStats()
7658 = accountingGetCurrentAmplification(rootParser); in accountingReportStats()
7662 (void *)rootParser, rootParser->m_accounting.countBytesDirect, in accountingReportStats()
7663 rootParser->m_accounting.countBytesIndirect, in accountingReportStats()
7673 accountingReportDiff(XML_Parser rootParser, in accountingReportDiff() argument
7677 assert(! rootParser->m_parentParser); in accountingReportDiff()
7690 if ((rootParser->m_accounting.debugLevel >= 3) in accountingReportDiff()
7728 const XML_Parser rootParser in accountingDiffTolerated() local
7730 assert(! rootParser->m_parentParser); in accountingDiffTolerated()
7733 = (account == XML_ACCOUNT_DIRECT) && (originParser == rootParser); in accountingDiffTolerated()
7737 = isDirect ? &rootParser->m_accounting.countBytesDirect in accountingDiffTolerated()
7738 : &rootParser->m_accounting.countBytesIndirect; in accountingDiffTolerated()
7746 = rootParser->m_accounting.countBytesDirect in accountingDiffTolerated()
7747 + rootParser->m_accounting.countBytesIndirect; in accountingDiffTolerated()
7749 = accountingGetCurrentAmplification(rootParser); in accountingDiffTolerated()
7751 = (countBytesOutput < rootParser->m_accounting.activationThresholdBytes) in accountingDiffTolerated()
7753 <= rootParser->m_accounting.maximumAmplificationFactor); in accountingDiffTolerated()
7755 if (rootParser->m_accounting.debugLevel >= 2) { in accountingDiffTolerated()
7756 accountingReportStats(rootParser, ""); in accountingDiffTolerated()
7757 accountingReportDiff(rootParser, levelsAwayFromRootParser, before, after, in accountingDiffTolerated()
7779 entityTrackingReportStats(XML_Parser rootParser, ENTITY *entity, in entityTrackingReportStats() argument
7781 assert(! rootParser->m_parentParser); in entityTrackingReportStats()
7782 if (rootParser->m_entity_stats.debugLevel < 1) in entityTrackingReportStats()
7794 (void *)rootParser, rootParser->m_entity_stats.countEverOpened, in entityTrackingReportStats()
7795 rootParser->m_entity_stats.currentDepth, in entityTrackingReportStats()
7796 rootParser->m_entity_stats.maximumDepthSeen, in entityTrackingReportStats()
7797 (rootParser->m_entity_stats.currentDepth - 1) * 2, "", in entityTrackingReportStats()
7804 const XML_Parser rootParser = getRootParserOf(originParser, NULL); in entityTrackingOnOpen() local
7805 assert(! rootParser->m_parentParser); in entityTrackingOnOpen()
7807 rootParser->m_entity_stats.countEverOpened++; in entityTrackingOnOpen()
7808 rootParser->m_entity_stats.currentDepth++; in entityTrackingOnOpen()
7809 if (rootParser->m_entity_stats.currentDepth in entityTrackingOnOpen()
7810 > rootParser->m_entity_stats.maximumDepthSeen) { in entityTrackingOnOpen()
7811 rootParser->m_entity_stats.maximumDepthSeen++; in entityTrackingOnOpen()
7814 entityTrackingReportStats(rootParser, entity, "OPEN ", sourceLine); in entityTrackingOnOpen()
7819 const XML_Parser rootParser = getRootParserOf(originParser, NULL); in entityTrackingOnClose() local
7820 assert(! rootParser->m_parentParser); in entityTrackingOnClose()
7822 entityTrackingReportStats(rootParser, entity, "CLOSE", sourceLine); in entityTrackingOnClose()
7823 rootParser->m_entity_stats.currentDepth--; in entityTrackingOnClose()
7828 XML_Parser rootParser = parser; in getRootParserOf() local
7830 while (rootParser->m_parentParser) { in getRootParserOf()
7831 rootParser = rootParser->m_parentParser; in getRootParserOf()
7834 assert(! rootParser->m_parentParser); in getRootParserOf()
7838 return rootParser; in getRootParserOf()