Example #1
0
void Profiler::end(string mId)
{
	if (!active) return;

	ProfilerObj* cObj = getObj(mId);
	if (cObj != NULL) cObj->end();
}
Example #2
0
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);
	}
}
Example #3
0
void Profiler::show(string mId)
{
	ProfilerObj* cObj = getObj(mId);
	if (cObj != NULL) cObj->show();
}
Example #4
0
int Profiler::getElapsed(string mId) 
{
	ProfilerObj* cObj = getObj(mId);
	if (cObj != NULL) return cObj->getElapsed();
	return 0;
}
Example #5
0
void Profiler::end(string mId)
{
	ProfilerObj* cObj = getObj(mId);
	if (cObj != NULL) cObj->end();
}