public static void ProfileMultipleTimes(String profileName, Action operation, Int32 numOfInvocations, Profiler profilingOperation)
 {
     for (Int32 i = 0; i < numOfInvocations; i++)
     {
         perfLabs.StartProfilers();
         using (perfLabs.Step(profilingOperation, profileName))
         {
             operation.Invoke();
         }
         perfLabs.StopProfilers();
     }
     perfLabs.StartProfilers();
 }
 public void TearDown()
 {
     perfLabs.StopProfilers();
     TestHelper.Cleanup();
 }