Lines Matching refs:rootParser

566 static float accountingGetCurrentAmplification(XML_Parser rootParser);
569 static void accountingReportDiff(XML_Parser rootParser,
7657 accountingGetCurrentAmplification(XML_Parser rootParser) { in accountingGetCurrentAmplification() argument
7659 = rootParser->m_accounting.countBytesDirect in accountingGetCurrentAmplification()
7660 + rootParser->m_accounting.countBytesIndirect; in accountingGetCurrentAmplification()
7662 = rootParser->m_accounting.countBytesDirect in accountingGetCurrentAmplification()
7664 / (float)(rootParser->m_accounting.countBytesDirect)) in accountingGetCurrentAmplification()
7666 assert(! rootParser->m_parentParser); in accountingGetCurrentAmplification()
7672 const XML_Parser rootParser = getRootParserOf(originParser, NULL); in accountingReportStats() local
7673 assert(! rootParser->m_parentParser); in accountingReportStats()
7675 if (rootParser->m_accounting.debugLevel < 1) { in accountingReportStats()
7680 = accountingGetCurrentAmplification(rootParser); in accountingReportStats()
7684 (void *)rootParser, rootParser->m_accounting.countBytesDirect, in accountingReportStats()
7685 rootParser->m_accounting.countBytesIndirect, in accountingReportStats()
7695 accountingReportDiff(XML_Parser rootParser, in accountingReportDiff() argument
7699 assert(! rootParser->m_parentParser); in accountingReportDiff()
7712 if ((rootParser->m_accounting.debugLevel >= 3) in accountingReportDiff()
7750 const XML_Parser rootParser in accountingDiffTolerated() local
7752 assert(! rootParser->m_parentParser); in accountingDiffTolerated()
7755 = (account == XML_ACCOUNT_DIRECT) && (originParser == rootParser); in accountingDiffTolerated()
7759 = isDirect ? &rootParser->m_accounting.countBytesDirect in accountingDiffTolerated()
7760 : &rootParser->m_accounting.countBytesIndirect; in accountingDiffTolerated()
7768 = rootParser->m_accounting.countBytesDirect in accountingDiffTolerated()
7769 + rootParser->m_accounting.countBytesIndirect; in accountingDiffTolerated()
7771 = accountingGetCurrentAmplification(rootParser); in accountingDiffTolerated()
7773 = (countBytesOutput < rootParser->m_accounting.activationThresholdBytes) in accountingDiffTolerated()
7775 <= rootParser->m_accounting.maximumAmplificationFactor); in accountingDiffTolerated()
7777 if (rootParser->m_accounting.debugLevel >= 2) { in accountingDiffTolerated()
7778 accountingReportStats(rootParser, ""); in accountingDiffTolerated()
7779 accountingReportDiff(rootParser, levelsAwayFromRootParser, before, after, in accountingDiffTolerated()
7801 entityTrackingReportStats(XML_Parser rootParser, ENTITY *entity, in entityTrackingReportStats() argument
7803 assert(! rootParser->m_parentParser); in entityTrackingReportStats()
7804 if (rootParser->m_entity_stats.debugLevel < 1) in entityTrackingReportStats()
7816 (void *)rootParser, rootParser->m_entity_stats.countEverOpened, in entityTrackingReportStats()
7817 rootParser->m_entity_stats.currentDepth, in entityTrackingReportStats()
7818 rootParser->m_entity_stats.maximumDepthSeen, in entityTrackingReportStats()
7819 (rootParser->m_entity_stats.currentDepth - 1) * 2, "", in entityTrackingReportStats()
7826 const XML_Parser rootParser = getRootParserOf(originParser, NULL); in entityTrackingOnOpen() local
7827 assert(! rootParser->m_parentParser); in entityTrackingOnOpen()
7829 rootParser->m_entity_stats.countEverOpened++; in entityTrackingOnOpen()
7830 rootParser->m_entity_stats.currentDepth++; in entityTrackingOnOpen()
7831 if (rootParser->m_entity_stats.currentDepth in entityTrackingOnOpen()
7832 > rootParser->m_entity_stats.maximumDepthSeen) { in entityTrackingOnOpen()
7833 rootParser->m_entity_stats.maximumDepthSeen++; in entityTrackingOnOpen()
7836 entityTrackingReportStats(rootParser, entity, "OPEN ", sourceLine); in entityTrackingOnOpen()
7841 const XML_Parser rootParser = getRootParserOf(originParser, NULL); in entityTrackingOnClose() local
7842 assert(! rootParser->m_parentParser); in entityTrackingOnClose()
7844 entityTrackingReportStats(rootParser, entity, "CLOSE", sourceLine); in entityTrackingOnClose()
7845 rootParser->m_entity_stats.currentDepth--; in entityTrackingOnClose()
7850 XML_Parser rootParser = parser; in getRootParserOf() local
7852 while (rootParser->m_parentParser) { in getRootParserOf()
7853 rootParser = rootParser->m_parentParser; in getRootParserOf()
7856 assert(! rootParser->m_parentParser); in getRootParserOf()
7860 return rootParser; in getRootParserOf()