public static final class BenchmarkEntry.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BenchmarkEntry.Builder> implements BenchmarkEntryOrBuilder
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| Modifier and Type | Method and Description |
|---|---|
BenchmarkEntry.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
BenchmarkEntry |
build() |
BenchmarkEntry |
buildPartial() |
BenchmarkEntry.Builder |
clear() |
BenchmarkEntry.Builder |
clearCpuTime()
Total cpu time used for all iterations (in seconds)
|
BenchmarkEntry.Builder |
clearExtras() |
BenchmarkEntry.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
BenchmarkEntry.Builder |
clearIters()
If a benchmark, how many iterations it was run for
|
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)
|
BenchmarkEntry.Builder |
clearWallTime()
Total wall time used for all iterations (in seconds)
|
BenchmarkEntry.Builder |
clone() |
boolean |
containsExtras(String key)
Generic map from result key to value.
|
double |
getCpuTime()
Total cpu time used for all iterations (in seconds)
|
BenchmarkEntry |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Map<String,EntryValue> |
getExtras()
Deprecated.
|
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
|
Map<String,EntryValue> |
getMutableExtras()
Deprecated.
|
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 |
getWallTime()
Total wall time used for all iterations (in seconds)
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
protected com.google.protobuf.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
BenchmarkEntry.Builder |
mergeFrom(BenchmarkEntry other) |
BenchmarkEntry.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
BenchmarkEntry.Builder |
mergeFrom(com.google.protobuf.Message other) |
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 |
setCpuTime(double value)
Total cpu time used for all iterations (in seconds)
|
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
|
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)
|
BenchmarkEntry.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
BenchmarkEntry.Builder |
setWallTime(double value)
Total wall time used for all iterations (in seconds)
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<BenchmarkEntry.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<BenchmarkEntry.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<BenchmarkEntry.Builder>public BenchmarkEntry.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<BenchmarkEntry.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<BenchmarkEntry.Builder>public BenchmarkEntry getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic BenchmarkEntry build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic BenchmarkEntry buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic BenchmarkEntry.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<BenchmarkEntry.Builder>public BenchmarkEntry.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<BenchmarkEntry.Builder>public BenchmarkEntry.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<BenchmarkEntry.Builder>public BenchmarkEntry.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<BenchmarkEntry.Builder>public BenchmarkEntry.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<BenchmarkEntry.Builder>public BenchmarkEntry.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<BenchmarkEntry.Builder>public BenchmarkEntry.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<BenchmarkEntry.Builder>public BenchmarkEntry.Builder mergeFrom(BenchmarkEntry other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<BenchmarkEntry.Builder>public BenchmarkEntry.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<BenchmarkEntry.Builder>IOExceptionpublic String getName()
The name of the specific benchmark or test (e.g. BM_AdjustContrast_gpu_B_W_H)
string name = 1;getName in interface BenchmarkEntryOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
The name of the specific benchmark or test (e.g. BM_AdjustContrast_gpu_B_W_H)
string name = 1;getNameBytes in interface BenchmarkEntryOrBuilderpublic BenchmarkEntry.Builder setName(String value)
The name of the specific benchmark or test (e.g. BM_AdjustContrast_gpu_B_W_H)
string name = 1;public BenchmarkEntry.Builder clearName()
The name of the specific benchmark or test (e.g. BM_AdjustContrast_gpu_B_W_H)
string name = 1;public BenchmarkEntry.Builder setNameBytes(com.google.protobuf.ByteString value)
The name of the specific benchmark or test (e.g. BM_AdjustContrast_gpu_B_W_H)
string name = 1;public long getIters()
If a benchmark, how many iterations it was run for
int64 iters = 2;getIters in interface BenchmarkEntryOrBuilderpublic BenchmarkEntry.Builder setIters(long value)
If a benchmark, how many iterations it was run for
int64 iters = 2;public BenchmarkEntry.Builder clearIters()
If a benchmark, how many iterations it was run for
int64 iters = 2;public double getCpuTime()
Total cpu time used for all iterations (in seconds)
double cpu_time = 3;getCpuTime in interface BenchmarkEntryOrBuilderpublic BenchmarkEntry.Builder setCpuTime(double value)
Total cpu time used for all iterations (in seconds)
double cpu_time = 3;public BenchmarkEntry.Builder clearCpuTime()
Total cpu time used for all iterations (in seconds)
double cpu_time = 3;public double getWallTime()
Total wall time used for all iterations (in seconds)
double wall_time = 4;getWallTime in interface BenchmarkEntryOrBuilderpublic BenchmarkEntry.Builder setWallTime(double value)
Total wall time used for all iterations (in seconds)
double wall_time = 4;public BenchmarkEntry.Builder clearWallTime()
Total wall time used for all iterations (in seconds)
double wall_time = 4;public double getThroughput()
Throughput (in MB/s)
double throughput = 5;getThroughput in interface BenchmarkEntryOrBuilderpublic BenchmarkEntry.Builder setThroughput(double value)
Throughput (in MB/s)
double throughput = 5;public BenchmarkEntry.Builder clearThroughput()
Throughput (in MB/s)
double throughput = 5;public int getExtrasCount()
BenchmarkEntryOrBuilderGeneric map from result key to value.
map<string, .tensorflow.EntryValue> extras = 6;getExtrasCount in interface BenchmarkEntryOrBuilderpublic boolean containsExtras(String key)
Generic map from result key to value.
map<string, .tensorflow.EntryValue> extras = 6;containsExtras in interface BenchmarkEntryOrBuilder@Deprecated public Map<String,EntryValue> getExtras()
getExtrasMap() instead.getExtras in interface BenchmarkEntryOrBuilderpublic Map<String,EntryValue> getExtrasMap()
Generic map from result key to value.
map<string, .tensorflow.EntryValue> extras = 6;getExtrasMap in interface BenchmarkEntryOrBuilderpublic EntryValue getExtrasOrDefault(String key, EntryValue defaultValue)
Generic map from result key to value.
map<string, .tensorflow.EntryValue> extras = 6;getExtrasOrDefault in interface BenchmarkEntryOrBuilderpublic EntryValue getExtrasOrThrow(String key)
Generic map from result key to value.
map<string, .tensorflow.EntryValue> extras = 6;getExtrasOrThrow in interface BenchmarkEntryOrBuilderpublic BenchmarkEntry.Builder clearExtras()
public BenchmarkEntry.Builder removeExtras(String key)
Generic map from result key to value.
map<string, .tensorflow.EntryValue> extras = 6;@Deprecated public Map<String,EntryValue> getMutableExtras()
public BenchmarkEntry.Builder putExtras(String key, EntryValue value)
Generic map from result key to value.
map<string, .tensorflow.EntryValue> extras = 6;public BenchmarkEntry.Builder putAllExtras(Map<String,EntryValue> values)
Generic map from result key to value.
map<string, .tensorflow.EntryValue> extras = 6;public final BenchmarkEntry.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<BenchmarkEntry.Builder>public final BenchmarkEntry.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<BenchmarkEntry.Builder>Copyright © 2015–2019. All rights reserved.