X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fdebug%2Fprofiler.cpp;h=e3d98408d6d2244c47da824c8cf0fde3c0998c89;hb=f4cf84ddec17f4fec0d9ba7e6814a8af8ff50395;hp=0167ff99e7be1aa6bd4fb81427023d9d8868d67c;hpb=9519381422961a538a3ebbd1e6563d170215f14e;p=libs%2Fcore.git diff --git a/source/debug/profiler.cpp b/source/debug/profiler.cpp index 0167ff9..e3d9840 100644 --- a/source/debug/profiler.cpp +++ b/source/debug/profiler.cpp @@ -1,4 +1,4 @@ -#include +#include #include #include "profiler.h" @@ -72,11 +72,7 @@ void Profiler::record(const string &scope_name, const string &parent, const Time const Profiler::ScopeInfo &Profiler::scope(const string &sn) const { - map::const_iterator i = scopes.find(sn); - if(i==scopes.end()) - throw KeyError("Unknown scope"); - - return i->second; + return get_item(scopes, sn); }