public static void Custom(string name, double value) { VerifyValue(name, value); var activeSampleGroup = PerformanceTest.GetSampleGroup(name); if (activeSampleGroup == null) { activeSampleGroup = new SampleGroup(name); PerformanceTest.AddSampleGroup(activeSampleGroup); } activeSampleGroup.Samples.Add(value); }
public static void Custom(SampleGroup sampleGroup, double value) { VerifyValue(sampleGroup.Name, value); var activeSampleGroup = PerformanceTest.GetSampleGroup(sampleGroup.Name); if (activeSampleGroup == null) { PerformanceTest.AddSampleGroup(sampleGroup); activeSampleGroup = sampleGroup; } activeSampleGroup.Samples.Add(value); }