void Profiler::start(string mId) { ProfilerObj* cObj = getObj(mId); if (cObj != NULL) { cObj->start(); } else { ProfilerObj* newObj = new ProfilerObj(mId); newObj->start(); obj.push_back(newObj); } }