예제 #1
0
 public static bool IsGeneric(this MetricKind metric)
 => Generic.Contains(metric);
예제 #2
0
 internal void AssertExportedInt64(
     string name,
     MetricKind kind,
     long value,
     params (string, string)[] labels)
예제 #3
0
 public OpMetricAttribute(MetricKind Metric, OpKind Op)
 {
     this.Metric = Metric;
     this.Op     = Op;
 }
예제 #4
0
파일: Metric.x.cs 프로젝트: 0xCM/arrows
 public static MetricComparisonSpec DefineComparison(this MetricKind Baseline, MetricKind Bench, PrimalKind Primitive, OpKind Operator)
 => MetricComparisonSpec.Define(Baseline, Bench, Primitive, Operator);
예제 #5
0
파일: Metric.x.cs 프로젝트: 0xCM/arrows
 public static MetricComparisonSpec DefineComparison <T>(this MetricKind Baseline, MetricKind Bench, OpKind Operator)
     where T : struct
 => MetricComparisonSpec.Define(Baseline, Bench, PrimalKinds.kind <T>(), Operator);
예제 #6
0
파일: Metric.x.cs 프로젝트: 0xCM/arrows
 public static MetricId Identify <T>(this MetricKind metric, OpKind op)
     where T : struct
 => MetricId.Define(metric, PrimalKinds.kind <T>(), op);
예제 #7
0
파일: Metric.x.cs 프로젝트: 0xCM/arrows
 public static void Deconstruct(this MetricId metric, out MetricKind Classifier, out PrimalKind Primitive, out OpKind Operator)
 {
     Classifier = metric.Classifier;
     Primitive  = metric.Primitive;
     Operator   = metric.Operator;
 }
예제 #8
0
파일: Metric.x.cs 프로젝트: 0xCM/arrows
 public static MetricId Identify(this MetricKind metric, PrimalKind primitive, OpKind op)
 => MetricId.Define(metric, primitive, op);
예제 #9
0
 public static MetricConfig Define(MetricKind metric, int runs, int cycles, int samples)
 => new MetricConfig(metric, runs, cycles, samples);
예제 #10
0
 public static MetricId Define(MetricKind Classifier, PrimalKind Primitive, OpKind Operator)
 => new MetricId(Classifier, Primitive, Operator);
예제 #11
0
 public static MetricComparisonSpec Define(MetricKind Baseline, MetricKind Bench, PrimalKind Primitive, OpKind Operator)
 => new MetricComparisonSpec(Baseline, Bench, Primitive, Operator);
예제 #12
0
 public static MetricComparisonSpec Define <T>(MetricKind Baseline, MetricKind Bench, PrimalKind Primitive, OpKind Operator)
     where T : struct
 => new MetricComparisonSpec(Baseline, Bench, PrimalKinds.kind <T>(), Operator);