summaryrefslogtreecommitdiff
path: root/configmgr
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2014-10-23 12:31:58 +0300
committerToma┼ż Vajngerl <tomaz.vajngerl@collabora.com>2014-12-04 23:04:23 +0100
commitca85c87bf66d15e689cb09daf5dab5c4467046bc (patch)
treeb1180f85b35009f50a411b98c2e711beb754c883 /configmgr
parent1e973a38a068dd4773b67fb5402c873ca90a3635 (diff)
Log parsing time of each xcd file
Change-Id: I290e2c84b17b9b5063139c6027b72f6cd3a78a99
Diffstat (limited to 'configmgr')
-rw-r--r--configmgr/source/parsemanager.cxx6
-rw-r--r--configmgr/source/parsemanager.hxx1
2 files changed, 4 insertions, 3 deletions
diff --git a/configmgr/source/parsemanager.cxx b/configmgr/source/parsemanager.cxx
index dab0c496e7c7..008f2bf69ddf 100644
--- a/configmgr/source/parsemanager.cxx
+++ b/configmgr/source/parsemanager.cxx
@@ -35,7 +35,7 @@ namespace configmgr {
ParseManager::ParseManager(
OUString const & url, rtl::Reference< Parser > const & parser)
- : reader_(url), parser_(parser), itemNamespaceId_(-1)
+ : url_(url), reader_(url), parser_(parser), itemNamespaceId_(-1)
{
assert(parser.is());
int id;
@@ -67,7 +67,7 @@ bool ParseManager::parse(std::set< OUString > const * existingDependencies) {
if (!parser_->startElement(
reader_, itemNamespaceId_, itemData_, existingDependencies))
{
- SAL_INFO("configmgr", "parsing " << reader_.getUrl() << " took " << (osl_getGlobalTimer() - startTime) << " ms, fail");
+ SAL_INFO("configmgr", "parsing " << url_ << " took " << (osl_getGlobalTimer() - startTime) << " ms, fail");
return false;
}
break;
@@ -78,7 +78,7 @@ bool ParseManager::parse(std::set< OUString > const * existingDependencies) {
parser_->characters(itemData_);
break;
case xmlreader::XmlReader::RESULT_DONE:
- SAL_INFO("configmgr", "parsing " << reader_.getUrl() << " took " << (osl_getGlobalTimer() - startTime) << " ms, success");
+ SAL_INFO("configmgr", "parsing " << url_ << " took " << (osl_getGlobalTimer() - startTime) << " ms, success");
return true;
}
itemData_.clear();
diff --git a/configmgr/source/parsemanager.hxx b/configmgr/source/parsemanager.hxx
index 85ed3c5ca4f3..74fa131b1caf 100644
--- a/configmgr/source/parsemanager.hxx
+++ b/configmgr/source/parsemanager.hxx
@@ -47,6 +47,7 @@ public:
enum { NAMESPACE_OOR = 1, NAMESPACE_XS = 2, NAMESPACE_XSI = 3 };
private:
+ OUString url_;
virtual ~ParseManager();
xmlreader::XmlReader reader_;