Measure It! is a small C# script we use while developing in Unity. It stores various statistics and displays them on screen whether in playmode or in editor. This is especially useful for Unity Indie users who don't have access to the profiler of the Pro version. This is the predecessor of Measure It! Pro, a much more comprehensive debugging and profiling tool you definitely should check out!

Features

  • Measure execution times in various units (Ticks, Milliseconds, Seconds) and show Min/Max/Average values
  • Display variables and custom text
  • Counting
  • Console logging
  • Toggle output using debug groups

How to get it?

Measure It! is available at the Unity AssetStore for free.

Basic Usage

Measure It! stores information in slots. A case-sensitive string (slotName) is used to create and refer to slots and to display slot's values.

Profiling example

MeasureIt.Begin("Calculation time");
//do some stuff
Measureit.End("Calculation time");

Counting example

MeasureIt.Count("Clicks");

Displaying custom text example

MeasureIt.Set("Current event",Event.current);

Clear a slot

MeasureIt.Clear("Click"); // clear a single slot
MeasureIt.Clear(); // clear all slots

Console Log

MeasureIt.Log("Hello world","aCustomDebugGroup"); // only shown if aCustomDebugGroup isn't muted!

Working with Groups

MeasureIt.MuteGroup("aCustomDebugGroup"); // mute all debug output for aCustomDebugGroup
MeasureIt.UnMuteAllGroups(); // Clear list of muted Objects
print