Ejemplo n.º 1
0
void Profiler::end(string mId)
{
	if (!active) return;

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