From 8ad99cc3f4dd98f0b73a2ece9323f01099a81e80 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 22 Jun 2014 20:58:13 +0300 Subject: Add profiler lines into some functions. --- src/configuration.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/configuration.cpp') diff --git a/src/configuration.cpp b/src/configuration.cpp index 550c61243..766684d5c 100644 --- a/src/configuration.cpp +++ b/src/configuration.cpp @@ -813,8 +813,12 @@ void Configuration::writeUpdated() void Configuration::write() { + BLOCK_START("Configuration::write") if (mConfigPath.empty()) + { + BLOCK_END("Configuration::write") return; + } mUpdated = false; // Do not attempt to write to file that cannot be opened for writing @@ -823,6 +827,7 @@ void Configuration::write() { logger->log("Configuration::write() couldn't open %s for writing", mConfigPath.c_str()); + BLOCK_END("Configuration::write") return; } else @@ -836,6 +841,7 @@ void Configuration::write() if (!writer) { logger->log1("Configuration::write() error while creating writer"); + BLOCK_END("Configuration::write") return; } @@ -850,6 +856,7 @@ void Configuration::write() xmlTextWriterEndDocument(writer); xmlFreeTextWriter(writer); + BLOCK_END("Configuration::write") } void Configuration::addListener(const std::string &key, -- cgit v1.2.3-70-g09d2