forked from organicmaps/organicmaps
[search] Calc offsets count only in debug mode for LOG(LDEBUG, ...).
This commit is contained in:
parent
1e7d5aa36c
commit
a79736fb13
1 changed files with 3 additions and 0 deletions
|
@ -114,12 +114,15 @@ void Query::UpdateViewportOffsets()
|
|||
|
||||
m_bOffsetsCacheIsValid = true;
|
||||
|
||||
#ifdef DEBUG
|
||||
size_t offsetsCached = 0;
|
||||
for (MwmSet::MwmId mwmId = 0; mwmId < mwmInfo.size(); ++mwmId)
|
||||
offsetsCached += m_offsetsInViewport[mwmId].size();
|
||||
|
||||
LOG(LDEBUG, ("For search in viewport cached ",
|
||||
"mwms:", mwmInfo.size(),
|
||||
"offsets:", offsetsCached));
|
||||
#endif
|
||||
}
|
||||
|
||||
namespace
|
||||
|
|
Loading…
Add table
Reference in a new issue