Mercurial > hg > svcore
diff base/Profiler.cpp @ 1365:3382d914e110
Merge from branch 3.0-integration
author | Chris Cannam |
---|---|
date | Fri, 13 Jan 2017 10:29:44 +0000 |
parents | c811991a5efa |
children | 48e9f538e6e9 |
line wrap: on
line diff
--- a/base/Profiler.cpp Mon Nov 21 16:32:58 2016 +0000 +++ b/base/Profiler.cpp Fri Jan 13 10:29:44 2017 +0000 @@ -47,15 +47,11 @@ dump(); } +#ifndef NO_TIMING void Profiles::accumulate( -#ifndef NO_TIMING const char* id, clock_t time, RealTime rt -#else - const char*, clock_t, RealTime -#endif ) { -#ifndef NO_TIMING ProfilePair &pair(m_profiles[id]); ++pair.first; pair.second.first += time; @@ -72,8 +68,8 @@ if (rt > worstPair.second) { worstPair.second = rt; } +} #endif -} void Profiles::dump() const {