public final class TraceEvent extends com.google.protobuf.GeneratedMessageV3 implements TraceEventOrBuilder
tensorflow.profiler.TraceEvent| Modifier and Type | Class and Description |
|---|---|
static class |
TraceEvent.Builder
Protobuf type
tensorflow.profiler.TraceEvent |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
ARGS_FIELD_NUMBER |
static int |
DEVICE_ID_FIELD_NUMBER |
static int |
DURATION_PS_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
RESOURCE_ID_FIELD_NUMBER |
static int |
TIMESTAMP_PS_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsArgs(String key)
Extra arguments that will be displayed in trace view.
|
boolean |
equals(Object obj) |
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.
|
static TraceEvent |
getDefaultInstance() |
TraceEvent |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
int |
getDeviceId()
The id of the device that this event occurred on.
|
long |
getDurationPs()
The duration of the event in picoseconds if applicable.
|
String |
getName()
The name of this trace event.
|
com.google.protobuf.ByteString |
getNameBytes()
The name of this trace event.
|
com.google.protobuf.Parser<TraceEvent> |
getParserForType() |
int |
getResourceId()
The id of the resource that this event occurred on.
|
int |
getSerializedSize() |
long |
getTimestampPs()
The timestamp that this event occurred at (in picos since tracing started).
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static TraceEvent.Builder |
newBuilder() |
static TraceEvent.Builder |
newBuilder(TraceEvent prototype) |
TraceEvent.Builder |
newBuilderForType() |
protected TraceEvent.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static TraceEvent |
parseDelimitedFrom(InputStream input) |
static TraceEvent |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TraceEvent |
parseFrom(byte[] data) |
static TraceEvent |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TraceEvent |
parseFrom(ByteBuffer data) |
static TraceEvent |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TraceEvent |
parseFrom(com.google.protobuf.ByteString data) |
static TraceEvent |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TraceEvent |
parseFrom(com.google.protobuf.CodedInputStream input) |
static TraceEvent |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TraceEvent |
parseFrom(InputStream input) |
static TraceEvent |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<TraceEvent> |
parser() |
TraceEvent.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int DEVICE_ID_FIELD_NUMBER
public static final int RESOURCE_ID_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
public static final int TIMESTAMP_PS_FIELD_NUMBER
public static final int DURATION_PS_FIELD_NUMBER
public static final int ARGS_FIELD_NUMBER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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 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 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 long getTimestampPs()
The timestamp that this event occurred at (in picos since tracing started).
uint64 timestamp_ps = 9;getTimestampPs in interface TraceEventOrBuilderpublic 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 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 final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static TraceEvent parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TraceEvent parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TraceEvent parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TraceEvent parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TraceEvent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TraceEvent parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TraceEvent parseFrom(InputStream input) throws IOException
IOExceptionpublic static TraceEvent parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static TraceEvent parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static TraceEvent parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static TraceEvent parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static TraceEvent parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic TraceEvent.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static TraceEvent.Builder newBuilder()
public static TraceEvent.Builder newBuilder(TraceEvent prototype)
public TraceEvent.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected TraceEvent.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static TraceEvent getDefaultInstance()
public static com.google.protobuf.Parser<TraceEvent> parser()
public com.google.protobuf.Parser<TraceEvent> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public TraceEvent getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2015–2019. All rights reserved.