Lines Matching defs:rootParser

596 static float accountingGetCurrentAmplification(XML_Parser rootParser);
599 static void accountingReportDiff(XML_Parser rootParser,
7820 accountingGetCurrentAmplification(XML_Parser rootParser) {
7824 = rootParser->m_accounting.countBytesDirect
7825 + rootParser->m_accounting.countBytesIndirect;
7827 = rootParser->m_accounting.countBytesDirect
7829 / (float)(rootParser->m_accounting.countBytesDirect))
7831 + rootParser->m_accounting.countBytesIndirect)
7833 assert(! rootParser->m_parentParser);
7839 const XML_Parser rootParser = getRootParserOf(originParser, NULL);
7840 assert(! rootParser->m_parentParser);
7842 if (rootParser->m_accounting.debugLevel == 0u) {
7847 = accountingGetCurrentAmplification(rootParser);
7851 (void *)rootParser, rootParser->m_accounting.countBytesDirect,
7852 rootParser->m_accounting.countBytesIndirect,
7862 accountingReportDiff(XML_Parser rootParser,
7866 assert(! rootParser->m_parentParser);
7879 if ((rootParser->m_accounting.debugLevel >= 3u)
7917 const XML_Parser rootParser
7919 assert(! rootParser->m_parentParser);
7922 = (account == XML_ACCOUNT_DIRECT) && (originParser == rootParser);
7926 = isDirect ? &rootParser->m_accounting.countBytesDirect
7927 : &rootParser->m_accounting.countBytesIndirect;
7935 = rootParser->m_accounting.countBytesDirect
7936 + rootParser->m_accounting.countBytesIndirect;
7938 = accountingGetCurrentAmplification(rootParser);
7940 = (countBytesOutput < rootParser->m_accounting.activationThresholdBytes)
7942 <= rootParser->m_accounting.maximumAmplificationFactor);
7944 if (rootParser->m_accounting.debugLevel >= 2u) {
7945 accountingReportStats(rootParser, "");
7946 accountingReportDiff(rootParser, levelsAwayFromRootParser, before, after,
7968 entityTrackingReportStats(XML_Parser rootParser, ENTITY *entity,
7970 assert(! rootParser->m_parentParser);
7971 if (rootParser->m_entity_stats.debugLevel == 0u)
7983 (void *)rootParser, rootParser->m_entity_stats.countEverOpened,
7984 rootParser->m_entity_stats.currentDepth,
7985 rootParser->m_entity_stats.maximumDepthSeen,
7986 (rootParser->m_entity_stats.currentDepth - 1) * 2, "",
7993 const XML_Parser rootParser = getRootParserOf(originParser, NULL);
7994 assert(! rootParser->m_parentParser);
7996 rootParser->m_entity_stats.countEverOpened++;
7997 rootParser->m_entity_stats.currentDepth++;
7998 if (rootParser->m_entity_stats.currentDepth
7999 > rootParser->m_entity_stats.maximumDepthSeen) {
8000 rootParser->m_entity_stats.maximumDepthSeen++;
8003 entityTrackingReportStats(rootParser, entity, "OPEN ", sourceLine);
8008 const XML_Parser rootParser = getRootParserOf(originParser, NULL);
8009 assert(! rootParser->m_parentParser);
8011 entityTrackingReportStats(rootParser, entity, "CLOSE", sourceLine);
8012 rootParser->m_entity_stats.currentDepth--;
8017 XML_Parser rootParser = parser;
8019 while (rootParser->m_parentParser) {
8020 rootParser = rootParser->m_parentParser;
8023 assert(! rootParser->m_parentParser);
8027 return rootParser;