diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-06-22 20:58:13 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-06-22 20:58:13 +0300 |
commit | 8ad99cc3f4dd98f0b73a2ece9323f01099a81e80 (patch) | |
tree | 33115940e6efabec34efb71e0be6b6d7dfd7e4df /src/configuration.cpp | |
parent | 04f47f060f94ec0e2dfc3cccf62cff167e0ecd68 (diff) | |
download | manaplus-8ad99cc3f4dd98f0b73a2ece9323f01099a81e80.tar.gz manaplus-8ad99cc3f4dd98f0b73a2ece9323f01099a81e80.tar.bz2 manaplus-8ad99cc3f4dd98f0b73a2ece9323f01099a81e80.tar.xz manaplus-8ad99cc3f4dd98f0b73a2ece9323f01099a81e80.zip |
Add profiler lines into some functions.
Diffstat (limited to 'src/configuration.cpp')
-rw-r--r-- | src/configuration.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
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, |