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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public 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.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessageV3
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField
in class com.google.protobuf.GeneratedMessageV3
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3
public 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 TraceEventOrBuilder
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 TraceEventOrBuilder
public String getName()
The name of this trace event.
string name = 3;
getName
in interface TraceEventOrBuilder
public com.google.protobuf.ByteString getNameBytes()
The name of this trace event.
string name = 3;
getNameBytes
in interface TraceEventOrBuilder
public long getTimestampPs()
The timestamp that this event occurred at (in picos since tracing started).
uint64 timestamp_ps = 9;
getTimestampPs
in interface TraceEventOrBuilder
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 TraceEventOrBuilder
public int getArgsCount()
TraceEventOrBuilder
Extra arguments that will be displayed in trace view.
map<string, string> args = 11;
getArgsCount
in interface TraceEventOrBuilder
public 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 TraceEventOrBuilder
public Map<String,String> getArgsMap()
Extra arguments that will be displayed in trace view.
map<string, string> args = 11;
getArgsMap
in interface TraceEventOrBuilder
public String getArgsOrDefault(String key, String defaultValue)
Extra arguments that will be displayed in trace view.
map<string, string> args = 11;
getArgsOrDefault
in interface TraceEventOrBuilder
public String getArgsOrThrow(String key)
Extra arguments that will be displayed in trace view.
map<string, string> args = 11;
getArgsOrThrow
in interface TraceEventOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static TraceEvent parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static TraceEvent parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static TraceEvent parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static TraceEvent parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static TraceEvent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static TraceEvent parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static TraceEvent parseFrom(InputStream input) throws IOException
IOException
public static TraceEvent parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static TraceEvent parseDelimitedFrom(InputStream input) throws IOException
IOException
public static TraceEvent parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static TraceEvent parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static TraceEvent parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public TraceEvent.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static TraceEvent.Builder newBuilder()
public static TraceEvent.Builder newBuilder(TraceEvent prototype)
public TraceEvent.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected TraceEvent.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessageV3
public static TraceEvent getDefaultInstance()
public static com.google.protobuf.Parser<TraceEvent> parser()
public com.google.protobuf.Parser<TraceEvent> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public TraceEvent getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
Copyright © 2015–2019. All rights reserved.