BenchmarkEntry.Builder

public static final class BenchmarkEntry.Builder

 Each unit test or benchmark in a test or benchmark run provides
 some set of information.  Here we provide some reasonable keys
 one would expect to see, with optional key/value pairs for things
 we haven't considered.
 This BenchmarkEntry should be emitted by each unit test or benchmark
 reporter.
 
Protobuf type tensorflow.BenchmarkEntry

Public Methods

BenchmarkEntry.Builder
addAllMetrics (Iterable<? extends MetricEntry > values)
 Metric name, value and expected range.
BenchmarkEntry.Builder
addMetrics (int index, MetricEntry.Builder builderForValue)
 Metric name, value and expected range.
BenchmarkEntry.Builder
addMetrics (int index, MetricEntry value)
 Metric name, value and expected range.
BenchmarkEntry.Builder
addMetrics ( MetricEntry value)
 Metric name, value and expected range.
BenchmarkEntry.Builder
addMetrics ( MetricEntry.Builder builderForValue)
 Metric name, value and expected range.
MetricEntry.Builder
addMetricsBuilder (int index)
 Metric name, value and expected range.
MetricEntry.Builder
addMetricsBuilder ()
 Metric name, value and expected range.
BenchmarkEntry.Builder
addRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
BenchmarkEntry
BenchmarkEntry
BenchmarkEntry.Builder
BenchmarkEntry.Builder
clearCpuTime ()
 Total cpu time used for all iterations (in seconds)
 
double cpu_time = 3;
BenchmarkEntry.Builder
BenchmarkEntry.Builder
clearField (com.google.protobuf.Descriptors.FieldDescriptor field)
BenchmarkEntry.Builder
clearIters ()
 If a benchmark, how many iterations it was run for
 
int64 iters = 2;
BenchmarkEntry.Builder
clearMetrics ()
 Metric name, value and expected range.
BenchmarkEntry.Builder
clearName ()
 The name of the specific benchmark or test
 (e.g.
BenchmarkEntry.Builder
clearOneof (com.google.protobuf.Descriptors.OneofDescriptor oneof)
BenchmarkEntry.Builder
clearThroughput ()
 Throughput (in MB/s)
 
double throughput = 5;
BenchmarkEntry.Builder
clearWallTime ()
 Total wall time used for all iterations (in seconds)
 
double wall_time = 4;
BenchmarkEntry.Builder
boolean
containsExtras (String key)
 Generic map from result key to value.
double
getCpuTime ()
 Total cpu time used for all iterations (in seconds)
 
double cpu_time = 3;
BenchmarkEntry
final static com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
Map<String, EntryValue >
int
getExtrasCount ()
 Generic map from result key to value.
Map<String, EntryValue >
getExtrasMap ()
 Generic map from result key to value.
EntryValue
getExtrasOrDefault (String key, EntryValue defaultValue)
 Generic map from result key to value.
EntryValue
getExtrasOrThrow (String key)
 Generic map from result key to value.
long
getIters ()
 If a benchmark, how many iterations it was run for
 
int64 iters = 2;
MetricEntry
getMetrics (int index)
 Metric name, value and expected range.
MetricEntry.Builder
getMetricsBuilder (int index)
 Metric name, value and expected range.
List< MetricEntry.Builder >
getMetricsBuilderList ()
 Metric name, value and expected range.
int
getMetricsCount ()
 Metric name, value and expected range.
List< MetricEntry >
getMetricsList ()
 Metric name, value and expected range.
MetricEntryOrBuilder
getMetricsOrBuilder (int index)
 Metric name, value and expected range.
List<? extends MetricEntryOrBuilder >
getMetricsOrBuilderList ()
 Metric name, value and expected range.
Map<String, EntryValue >
getMutableExtras ()
Use alternate mutation accessors instead.
String
getName ()
 The name of the specific benchmark or test
 (e.g.
com.google.protobuf.ByteString
getNameBytes ()
 The name of the specific benchmark or test
 (e.g.
double
getThroughput ()
 Throughput (in MB/s)
 
double throughput = 5;
double
getWallTime ()
 Total wall time used for all iterations (in seconds)
 
double wall_time = 4;
final boolean
BenchmarkEntry.Builder
mergeFrom (com.google.protobuf.Message other)
BenchmarkEntry.Builder
mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
final BenchmarkEntry.Builder
mergeUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields)
BenchmarkEntry.Builder
putAllExtras (Map<String, EntryValue > values)
 Generic map from result key to value.
BenchmarkEntry.Builder
putExtras (String key, EntryValue value)
 Generic map from result key to value.
BenchmarkEntry.Builder
removeExtras (String key)
 Generic map from result key to value.
BenchmarkEntry.Builder
removeMetrics (int index)
 Metric name, value and expected range.
BenchmarkEntry.Builder
setCpuTime (double value)
 Total cpu time used for all iterations (in seconds)
 
double cpu_time = 3;
BenchmarkEntry.Builder
setField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
BenchmarkEntry.Builder
setIters (long value)
 If a benchmark, how many iterations it was run for
 
int64 iters = 2;
BenchmarkEntry.Builder
setMetrics (int index, MetricEntry.Builder builderForValue)
 Metric name, value and expected range.
BenchmarkEntry.Builder
setMetrics (int index, MetricEntry value)
 Metric name, value and expected range.
BenchmarkEntry.Builder
setName (String value)
 The name of the specific benchmark or test
 (e.g.
BenchmarkEntry.Builder
setNameBytes (com.google.protobuf.ByteString value)
 The name of the specific benchmark or test
 (e.g.
BenchmarkEntry.Builder
setRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
BenchmarkEntry.Builder
setThroughput (double value)
 Throughput (in MB/s)
 
double throughput = 5;
final BenchmarkEntry.Builder
setUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields)
BenchmarkEntry.Builder
setWallTime (double value)
 Total wall time used for all iterations (in seconds)
 
double wall_time = 4;

Inherited Methods