A simple profiler class for use in Unity3d, editor or runtime.