Lines Matching refs:rootParser

611 static float accountingGetCurrentAmplification(XML_Parser rootParser);
614 static void accountingReportDiff(XML_Parser rootParser,
8088 accountingGetCurrentAmplification(XML_Parser rootParser) { in accountingGetCurrentAmplification() argument
8092 = rootParser->m_accounting.countBytesDirect in accountingGetCurrentAmplification()
8093 + rootParser->m_accounting.countBytesIndirect; in accountingGetCurrentAmplification()
8095 = rootParser->m_accounting.countBytesDirect in accountingGetCurrentAmplification()
8097 / (float)(rootParser->m_accounting.countBytesDirect)) in accountingGetCurrentAmplification()
8099 + rootParser->m_accounting.countBytesIndirect) in accountingGetCurrentAmplification()
8101 assert(! rootParser->m_parentParser); in accountingGetCurrentAmplification()
8107 const XML_Parser rootParser = getRootParserOf(originParser, NULL); in accountingReportStats() local
8108 assert(! rootParser->m_parentParser); in accountingReportStats()
8110 if (rootParser->m_accounting.debugLevel == 0u) { in accountingReportStats()
8115 = accountingGetCurrentAmplification(rootParser); in accountingReportStats()
8119 (void *)rootParser, rootParser->m_accounting.countBytesDirect, in accountingReportStats()
8120 rootParser->m_accounting.countBytesIndirect, in accountingReportStats()
8130 accountingReportDiff(XML_Parser rootParser, in accountingReportDiff() argument
8134 assert(! rootParser->m_parentParser); in accountingReportDiff()
8147 if ((rootParser->m_accounting.debugLevel >= 3u) in accountingReportDiff()
8185 const XML_Parser rootParser in accountingDiffTolerated() local
8187 assert(! rootParser->m_parentParser); in accountingDiffTolerated()
8190 = (account == XML_ACCOUNT_DIRECT) && (originParser == rootParser); in accountingDiffTolerated()
8194 = isDirect ? &rootParser->m_accounting.countBytesDirect in accountingDiffTolerated()
8195 : &rootParser->m_accounting.countBytesIndirect; in accountingDiffTolerated()
8203 = rootParser->m_accounting.countBytesDirect in accountingDiffTolerated()
8204 + rootParser->m_accounting.countBytesIndirect; in accountingDiffTolerated()
8206 = accountingGetCurrentAmplification(rootParser); in accountingDiffTolerated()
8208 = (countBytesOutput < rootParser->m_accounting.activationThresholdBytes) in accountingDiffTolerated()
8210 <= rootParser->m_accounting.maximumAmplificationFactor); in accountingDiffTolerated()
8212 if (rootParser->m_accounting.debugLevel >= 2u) { in accountingDiffTolerated()
8213 accountingReportStats(rootParser, ""); in accountingDiffTolerated()
8214 accountingReportDiff(rootParser, levelsAwayFromRootParser, before, after, in accountingDiffTolerated()
8236 entityTrackingReportStats(XML_Parser rootParser, ENTITY *entity, in entityTrackingReportStats() argument
8238 assert(! rootParser->m_parentParser); in entityTrackingReportStats()
8239 if (rootParser->m_entity_stats.debugLevel == 0u) in entityTrackingReportStats()
8251 (void *)rootParser, rootParser->m_entity_stats.countEverOpened, in entityTrackingReportStats()
8252 rootParser->m_entity_stats.currentDepth, in entityTrackingReportStats()
8253 rootParser->m_entity_stats.maximumDepthSeen, in entityTrackingReportStats()
8254 ((int)rootParser->m_entity_stats.currentDepth - 1) * 2, "", in entityTrackingReportStats()
8261 const XML_Parser rootParser = getRootParserOf(originParser, NULL); in entityTrackingOnOpen() local
8262 assert(! rootParser->m_parentParser); in entityTrackingOnOpen()
8264 rootParser->m_entity_stats.countEverOpened++; in entityTrackingOnOpen()
8265 rootParser->m_entity_stats.currentDepth++; in entityTrackingOnOpen()
8266 if (rootParser->m_entity_stats.currentDepth in entityTrackingOnOpen()
8267 > rootParser->m_entity_stats.maximumDepthSeen) { in entityTrackingOnOpen()
8268 rootParser->m_entity_stats.maximumDepthSeen++; in entityTrackingOnOpen()
8271 entityTrackingReportStats(rootParser, entity, "OPEN ", sourceLine); in entityTrackingOnOpen()
8276 const XML_Parser rootParser = getRootParserOf(originParser, NULL); in entityTrackingOnClose() local
8277 assert(! rootParser->m_parentParser); in entityTrackingOnClose()
8279 entityTrackingReportStats(rootParser, entity, "CLOSE", sourceLine); in entityTrackingOnClose()
8280 rootParser->m_entity_stats.currentDepth--; in entityTrackingOnClose()
8285 XML_Parser rootParser = parser; in getRootParserOf() local
8287 while (rootParser->m_parentParser) { in getRootParserOf()
8288 rootParser = rootParser->m_parentParser; in getRootParserOf()
8291 assert(! rootParser->m_parentParser); in getRootParserOf()
8295 return rootParser; in getRootParserOf()