public static final class TraceEvent.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TraceEvent.Builder> implements TraceEventOrBuilder
tensorflow.profiler.TraceEvent| Modifier and Type | Method and Description |
|---|---|
TraceEvent.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TraceEvent |
build() |
TraceEvent |
buildPartial() |
TraceEvent.Builder |
clear() |
TraceEvent.Builder |
clearArgs() |
TraceEvent.Builder |
clearDeviceId()
The id of the device that this event occurred on.
|
TraceEvent.Builder |
clearDurationPs()
The duration of the event in picoseconds if applicable.
|
TraceEvent.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
TraceEvent.Builder |
clearName()
The name of this trace event.
|
TraceEvent.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
TraceEvent.Builder |
clearResourceId()
The id of the resource that this event occurred on.
|
TraceEvent.Builder |
clearTimestampPs()
The timestamp that this event occurred at (in picos since tracing started).
|
TraceEvent.Builder |
clone() |
boolean |
containsArgs(String key)
Extra arguments that will be displayed in trace view.
|
Map<String,String> |
getArgs()
Deprecated.
|
int |
getArgsCount()
Extra arguments that will be displayed in trace view.
|
Map<String,String> |
getArgsMap()
Extra arguments that will be displayed in trace view.
|
String |
getArgsOrDefault(String key,
String defaultValue)
Extra arguments that will be displayed in trace view.
|
String |
getArgsOrThrow(String key)
Extra arguments that will be displayed in trace view.
|
TraceEvent |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
int |
getDeviceId()
The id of the device that this event occurred on.
|
long |
getDurationPs()
The duration of the event in picoseconds if applicable.
|
Map<String,String> |
getMutableArgs()
Deprecated.
|
String |
getName()
The name of this trace event.
|
com.google.protobuf.ByteString |
getNameBytes()
The name of this trace event.
|
int |
getResourceId()
The id of the resource that this event occurred on.
|
long |
getTimestampPs()
The timestamp that this event occurred at (in picos since tracing started).
|
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() |
TraceEvent.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
TraceEvent.Builder |
mergeFrom(com.google.protobuf.Message other) |
TraceEvent.Builder |
mergeFrom(TraceEvent other) |
TraceEvent.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
TraceEvent.Builder |
putAllArgs(Map<String,String> values)
Extra arguments that will be displayed in trace view.
|
TraceEvent.Builder |
putArgs(String key,
String value)
Extra arguments that will be displayed in trace view.
|
TraceEvent.Builder |
removeArgs(String key)
Extra arguments that will be displayed in trace view.
|
TraceEvent.Builder |
setDeviceId(int value)
The id of the device that this event occurred on.
|
TraceEvent.Builder |
setDurationPs(long value)
The duration of the event in picoseconds if applicable.
|
TraceEvent.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TraceEvent.Builder |
setName(String value)
The name of this trace event.
|
TraceEvent.Builder |
setNameBytes(com.google.protobuf.ByteString value)
The name of this trace event.
|
TraceEvent.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
TraceEvent.Builder |
setResourceId(int value)
The id of the resource that this event occurred on.
|
TraceEvent.Builder |
setTimestampPs(long value)
The timestamp that this event occurred at (in picos since tracing started).
|
TraceEvent.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
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<TraceEvent.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<TraceEvent.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<TraceEvent.Builder>public TraceEvent.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<TraceEvent.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<TraceEvent.Builder>public TraceEvent getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic TraceEvent build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic TraceEvent buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic TraceEvent.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<TraceEvent.Builder>public TraceEvent.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<TraceEvent.Builder>public TraceEvent.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<TraceEvent.Builder>public TraceEvent.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<TraceEvent.Builder>public TraceEvent.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<TraceEvent.Builder>public TraceEvent.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<TraceEvent.Builder>public TraceEvent.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TraceEvent.Builder>public TraceEvent.Builder mergeFrom(TraceEvent other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<TraceEvent.Builder>public TraceEvent.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<TraceEvent.Builder>IOExceptionpublic int getDeviceId()
The id of the device that this event occurred on. The full dataset should have this device present in the Trace object.
uint32 device_id = 1;getDeviceId in interface TraceEventOrBuilderpublic TraceEvent.Builder setDeviceId(int value)
The id of the device that this event occurred on. The full dataset should have this device present in the Trace object.
uint32 device_id = 1;public TraceEvent.Builder clearDeviceId()
The id of the device that this event occurred on. The full dataset should have this device present in the Trace object.
uint32 device_id = 1;public int getResourceId()
The id of the resource that this event occurred on. The full dataset should have this resource present in the Device object of the Trace object. A resource_id is unique on a specific device, but not necessarily within the trace.
uint32 resource_id = 2;getResourceId in interface TraceEventOrBuilderpublic TraceEvent.Builder setResourceId(int value)
The id of the resource that this event occurred on. The full dataset should have this resource present in the Device object of the Trace object. A resource_id is unique on a specific device, but not necessarily within the trace.
uint32 resource_id = 2;public TraceEvent.Builder clearResourceId()
The id of the resource that this event occurred on. The full dataset should have this resource present in the Device object of the Trace object. A resource_id is unique on a specific device, but not necessarily within the trace.
uint32 resource_id = 2;public String getName()
The name of this trace event.
string name = 3;getName in interface TraceEventOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
The name of this trace event.
string name = 3;getNameBytes in interface TraceEventOrBuilderpublic TraceEvent.Builder setName(String value)
The name of this trace event.
string name = 3;public TraceEvent.Builder clearName()
The name of this trace event.
string name = 3;public TraceEvent.Builder setNameBytes(com.google.protobuf.ByteString value)
The name of this trace event.
string name = 3;public long getTimestampPs()
The timestamp that this event occurred at (in picos since tracing started).
uint64 timestamp_ps = 9;getTimestampPs in interface TraceEventOrBuilderpublic TraceEvent.Builder setTimestampPs(long value)
The timestamp that this event occurred at (in picos since tracing started).
uint64 timestamp_ps = 9;public TraceEvent.Builder clearTimestampPs()
The timestamp that this event occurred at (in picos since tracing started).
uint64 timestamp_ps = 9;public long getDurationPs()
The duration of the event in picoseconds if applicable. Events without duration are called instant events.
uint64 duration_ps = 10;getDurationPs in interface TraceEventOrBuilderpublic TraceEvent.Builder setDurationPs(long value)
The duration of the event in picoseconds if applicable. Events without duration are called instant events.
uint64 duration_ps = 10;public TraceEvent.Builder clearDurationPs()
The duration of the event in picoseconds if applicable. Events without duration are called instant events.
uint64 duration_ps = 10;public int getArgsCount()
TraceEventOrBuilderExtra arguments that will be displayed in trace view.
map<string, string> args = 11;getArgsCount in interface TraceEventOrBuilderpublic boolean containsArgs(String key)
Extra arguments that will be displayed in trace view.
map<string, string> args = 11;containsArgs in interface TraceEventOrBuilder@Deprecated public Map<String,String> getArgs()
getArgsMap() instead.getArgs in interface TraceEventOrBuilderpublic Map<String,String> getArgsMap()
Extra arguments that will be displayed in trace view.
map<string, string> args = 11;getArgsMap in interface TraceEventOrBuilderpublic String getArgsOrDefault(String key, String defaultValue)
Extra arguments that will be displayed in trace view.
map<string, string> args = 11;getArgsOrDefault in interface TraceEventOrBuilderpublic String getArgsOrThrow(String key)
Extra arguments that will be displayed in trace view.
map<string, string> args = 11;getArgsOrThrow in interface TraceEventOrBuilderpublic TraceEvent.Builder clearArgs()
public TraceEvent.Builder removeArgs(String key)
Extra arguments that will be displayed in trace view.
map<string, string> args = 11;@Deprecated public Map<String,String> getMutableArgs()
public TraceEvent.Builder putArgs(String key, String value)
Extra arguments that will be displayed in trace view.
map<string, string> args = 11;public TraceEvent.Builder putAllArgs(Map<String,String> values)
Extra arguments that will be displayed in trace view.
map<string, string> args = 11;public final TraceEvent.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TraceEvent.Builder>public final TraceEvent.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TraceEvent.Builder>Copyright © 2015–2019. All rights reserved.