-#include "../core/except.h"
-#include "../time/units.h"
+#include <msp/core/maputils.h>
+#include <msp/time/units.h>
#include "profiler.h"
using namespace std;
const Profiler::ScopeInfo &Profiler::scope(const string &sn) const
{
- map<string, ScopeInfo>::const_iterator i = scopes.find(sn);
- if(i==scopes.end())
- throw KeyError("Unknown scope");
-
- return i->second;
+ return get_item(scopes, sn);
}