summaryrefslogtreecommitdiff
path: root/src/configuration.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-06-22 20:58:13 +0300
committerAndrei Karas <akaras@inbox.ru>2014-06-22 20:58:13 +0300
commit8ad99cc3f4dd98f0b73a2ece9323f01099a81e80 (patch)
tree33115940e6efabec34efb71e0be6b6d7dfd7e4df /src/configuration.cpp
parent04f47f060f94ec0e2dfc3cccf62cff167e0ecd68 (diff)
downloadmv-8ad99cc3f4dd98f0b73a2ece9323f01099a81e80.tar.gz
mv-8ad99cc3f4dd98f0b73a2ece9323f01099a81e80.tar.bz2
mv-8ad99cc3f4dd98f0b73a2ece9323f01099a81e80.tar.xz
mv-8ad99cc3f4dd98f0b73a2ece9323f01099a81e80.zip
Add profiler lines into some functions.
Diffstat (limited to 'src/configuration.cpp')
-rw-r--r--src/configuration.cpp7
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,