diff --git a/alib2common/src/sax/SaxComposeInterface.cpp b/alib2common/src/sax/SaxComposeInterface.cpp index 71db7496bca46a47f076a67f582d327d88c44f85..66b6e4be38f483751bc8ba00d2c8b1c2a6866bd0 100644 --- a/alib2common/src/sax/SaxComposeInterface.cpp +++ b/alib2common/src/sax/SaxComposeInterface.cpp @@ -13,6 +13,7 @@ #include <sstream> #include <deque> #include "ComposerException.h" +#include "../measure" namespace sax { @@ -51,7 +52,7 @@ void SaxComposeInterface::printStream(std::ostream& out, const std::deque<Token> } void SaxComposeInterface::xmlSAXUserPrint(xmlTextWriterPtr writer, const std::deque<Token>& in) { - // measurements::start("Sax Composer", measurements::Type::FINALIZE); + measurements::start("Sax Composer", measurements::Type::FINALIZE); xmlTextWriterStartDocument(writer, NULL, NULL, NULL); #ifdef DEBUG std::deque<Token> stack; @@ -94,7 +95,7 @@ void SaxComposeInterface::xmlSAXUserPrint(xmlTextWriterPtr writer, const std::de } } xmlTextWriterEndDocument(writer); - // measurements::end(); + measurements::end(); } } /* namespace sax */ diff --git a/alib2common/src/sax/SaxParseInterface.cpp b/alib2common/src/sax/SaxParseInterface.cpp index 275a1b7ea851592eae2db7bb4fa1a551e01ecf6c..a142bddf1f07a2343dbb0a47c47183c109dc0a9f 100644 --- a/alib2common/src/sax/SaxParseInterface.cpp +++ b/alib2common/src/sax/SaxParseInterface.cpp @@ -13,6 +13,7 @@ #include <iostream> #include <algorithm> #include "../exception/CommonException.h" +#include "../measure" namespace sax { @@ -54,7 +55,7 @@ void SaxParseInterface::parseStream(std::istream& in, std::deque<Token>& out) { int SaxParseInterface::xmlSAXUserParse(xmlTextReaderPtr reader, std::deque<Token>& out) { int ret = xmlTextReaderRead(reader); - // measurements::start("Sax Parser", measurements::Type::INIT); + measurements::start("Sax Parser", measurements::Type::INIT); while (ret == 1) { xmlChar* name = xmlTextReaderName(reader); xmlChar* value; @@ -91,7 +92,7 @@ int SaxParseInterface::xmlSAXUserParse(xmlTextReaderPtr reader, std::deque<Token ret = xmlTextReaderRead(reader); } - // measurements::end(); + measurements::end(); return ret; }