Lines Matching refs:rootParser

598 static float accountingGetCurrentAmplification(XML_Parser rootParser);
601 static void accountingReportDiff(XML_Parser rootParser,
7813 accountingGetCurrentAmplification(XML_Parser rootParser) { in accountingGetCurrentAmplification() argument
7817 = rootParser->m_accounting.countBytesDirect in accountingGetCurrentAmplification()
7818 + rootParser->m_accounting.countBytesIndirect; in accountingGetCurrentAmplification()
7820 = rootParser->m_accounting.countBytesDirect in accountingGetCurrentAmplification()
7822 / (float)(rootParser->m_accounting.countBytesDirect)) in accountingGetCurrentAmplification()
7824 + rootParser->m_accounting.countBytesIndirect) in accountingGetCurrentAmplification()
7826 assert(! rootParser->m_parentParser); in accountingGetCurrentAmplification()
7832 const XML_Parser rootParser = getRootParserOf(originParser, NULL); in accountingReportStats() local
7833 assert(! rootParser->m_parentParser); in accountingReportStats()
7835 if (rootParser->m_accounting.debugLevel == 0u) { in accountingReportStats()
7840 = accountingGetCurrentAmplification(rootParser); in accountingReportStats()
7844 (void *)rootParser, rootParser->m_accounting.countBytesDirect, in accountingReportStats()
7845 rootParser->m_accounting.countBytesIndirect, in accountingReportStats()
7855 accountingReportDiff(XML_Parser rootParser, in accountingReportDiff() argument
7859 assert(! rootParser->m_parentParser); in accountingReportDiff()
7872 if ((rootParser->m_accounting.debugLevel >= 3u) in accountingReportDiff()
7910 const XML_Parser rootParser in accountingDiffTolerated() local
7912 assert(! rootParser->m_parentParser); in accountingDiffTolerated()
7915 = (account == XML_ACCOUNT_DIRECT) && (originParser == rootParser); in accountingDiffTolerated()
7919 = isDirect ? &rootParser->m_accounting.countBytesDirect in accountingDiffTolerated()
7920 : &rootParser->m_accounting.countBytesIndirect; in accountingDiffTolerated()
7928 = rootParser->m_accounting.countBytesDirect in accountingDiffTolerated()
7929 + rootParser->m_accounting.countBytesIndirect; in accountingDiffTolerated()
7931 = accountingGetCurrentAmplification(rootParser); in accountingDiffTolerated()
7933 = (countBytesOutput < rootParser->m_accounting.activationThresholdBytes) in accountingDiffTolerated()
7935 <= rootParser->m_accounting.maximumAmplificationFactor); in accountingDiffTolerated()
7937 if (rootParser->m_accounting.debugLevel >= 2u) { in accountingDiffTolerated()
7938 accountingReportStats(rootParser, ""); in accountingDiffTolerated()
7939 accountingReportDiff(rootParser, levelsAwayFromRootParser, before, after, in accountingDiffTolerated()
7961 entityTrackingReportStats(XML_Parser rootParser, ENTITY *entity, in entityTrackingReportStats() argument
7963 assert(! rootParser->m_parentParser); in entityTrackingReportStats()
7964 if (rootParser->m_entity_stats.debugLevel == 0u) in entityTrackingReportStats()
7976 (void *)rootParser, rootParser->m_entity_stats.countEverOpened, in entityTrackingReportStats()
7977 rootParser->m_entity_stats.currentDepth, in entityTrackingReportStats()
7978 rootParser->m_entity_stats.maximumDepthSeen, in entityTrackingReportStats()
7979 (rootParser->m_entity_stats.currentDepth - 1) * 2, "", in entityTrackingReportStats()
7986 const XML_Parser rootParser = getRootParserOf(originParser, NULL); in entityTrackingOnOpen() local
7987 assert(! rootParser->m_parentParser); in entityTrackingOnOpen()
7989 rootParser->m_entity_stats.countEverOpened++; in entityTrackingOnOpen()
7990 rootParser->m_entity_stats.currentDepth++; in entityTrackingOnOpen()
7991 if (rootParser->m_entity_stats.currentDepth in entityTrackingOnOpen()
7992 > rootParser->m_entity_stats.maximumDepthSeen) { in entityTrackingOnOpen()
7993 rootParser->m_entity_stats.maximumDepthSeen++; in entityTrackingOnOpen()
7996 entityTrackingReportStats(rootParser, entity, "OPEN ", sourceLine); in entityTrackingOnOpen()
8001 const XML_Parser rootParser = getRootParserOf(originParser, NULL); in entityTrackingOnClose() local
8002 assert(! rootParser->m_parentParser); in entityTrackingOnClose()
8004 entityTrackingReportStats(rootParser, entity, "CLOSE", sourceLine); in entityTrackingOnClose()
8005 rootParser->m_entity_stats.currentDepth--; in entityTrackingOnClose()
8010 XML_Parser rootParser = parser; in getRootParserOf() local
8012 while (rootParser->m_parentParser) { in getRootParserOf()
8013 rootParser = rootParser->m_parentParser; in getRootParserOf()
8016 assert(! rootParser->m_parentParser); in getRootParserOf()
8020 return rootParser; in getRootParserOf()