skip to content

The Profiler

Profiler Screenshot

Measure It! Pro's profiler handles block nesting and automatic identifier tree building. Results are shown in the graph view as well as in the data readout section.

To let Measure It! Pro profile sections of your code you'll need enclose your code by a call to MIP's profiler methods. Here's the source:

void Update()
{
	using (new MIPProfiler(name + ".Update")) {
		// your code goes here...
	}
}
void LateUpdate()
{
	using (new MIPProfiler(name + ".LateUpdate")) 
	{
		// your code goes here...
		NestOne();
	}
}
void NestOne()
{
	using (new MIPProfiler("NestOne")) 
	{ 
		// your code goes here...
		NestTwo();
	}
}
void NestTwo()
{
	using (new MIPProfiler("NestTwo")) 
	{ 
		// your code goes here...
	}
}

If you look at the results above you'll notice that MIP will automatically generate a tree structure of your measures!

Concept <<   >> Logging