Exemplo n.º 1
0
 public OpId(NumericSystem NumSystem, OpKind OpKind, NumericKind NumKind, Genericity Generic, OpFusion Fusion, string OpTitle)
 {
     this.NumSystem   = NumSystem;
     this.OpKind      = OpKind;
     this.NumKind     = NumKind;
     this.OperandType = PrimalKinds.kind <T>();
     this.Generic     = Generic;
     this.Fusion      = Fusion;
     this.OpTitle     = ifEmpty(OpTitle, OpId.DefineOpTitle(this));
     this.OpUri       = OpId.BuildOpUri(this);
 }
Exemplo n.º 2
0
 public MetricSummaryRecord(OpId op, long opcount, Duration time)
 {
     this.OpName   = OpId.BuildOpUri(op);
     this.OpCount  = opcount;
     this.WorkTime = time;
 }
Exemplo n.º 3
0
 internal static AppMsg BenchmarkEnd(OpId opid, long totalOpCount, Duration totalDuration)
 => AppMsg.Define(concat(
                      $"{opid} summary".PadRight(28),
                      Pipe, "Total Op Count", Eq, $"{totalOpCount}".PadRight(12),
                      Pipe, "Total Duration", Eq, $"{totalDuration}"),
                  SeverityLevel.HiliteCL);
Exemplo n.º 4
0
 public static Metrics <T> CaptureMetrics <T>(this OpId OpId, long OpCount, Duration WorkTime, Span <T> results)
     where T : struct
 => new Metrics <T>(OpId, OpCount, WorkTime, results);
Exemplo n.º 5
0
 public static Metrics <T> CaptureMetrics <T>(this OpId <T> OpId, long OpCount, Duration WorkTime, T[] results)
     where T : struct
 => (OpId, OpCount, WorkTime, results);