Interface ProfileOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Profile,Profile.Builder
@Generated
public interface ProfileOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionintgetAttributeIndices(int index) References to attributes in attribute_table.intReferences to attributes in attribute_table.References to attributes in attribute_table.intThe number of attributes that were discarded.longDuration of the profile in nanoseconds.com.google.protobuf.ByteStringThe original payload bytes.The original payload format.com.google.protobuf.ByteStringThe original payload format.longThe distance between sampled occurrences for periodic sampling profiles.The type and the unit of the events between sampled occurrences for periodic sampling profiles.The type and the unit of the events between sampled occurrences for periodic sampling profiles.com.google.protobuf.ByteStringA globally unique identifier for a profile.getSamples(int index) The set of samples recorded in this profile.intThe set of samples recorded in this profile.The set of samples recorded in this profile.getSamplesOrBuilder(int index) The set of samples recorded in this profile.List<? extends SampleOrBuilder>The set of samples recorded in this profile.The type and unit of all Sample.values in this profile.The type and unit of all Sample.values in this profile.longTime of collection (UTC) as nanoseconds since the UNIX epoch.booleanThe type and the unit of the events between sampled occurrences for periodic sampling profiles.booleanThe type and unit of all Sample.values in this profile.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasSampleType
boolean hasSampleType()The type and unit of all Sample.values in this profile. For a cpu or off-cpu profile this might be: ["cpu","nanoseconds"] or ["off_cpu","nanoseconds"] For a heap profile, this might be: ["allocated_objects","count"] or ["allocated_space","bytes"],
.opentelemetry.proto.profiles.v1development.ValueType sample_type = 1;- Returns:
- Whether the sampleType field is set.
-
getSampleType
ValueType getSampleType()The type and unit of all Sample.values in this profile. For a cpu or off-cpu profile this might be: ["cpu","nanoseconds"] or ["off_cpu","nanoseconds"] For a heap profile, this might be: ["allocated_objects","count"] or ["allocated_space","bytes"],
.opentelemetry.proto.profiles.v1development.ValueType sample_type = 1;- Returns:
- The sampleType.
-
getSampleTypeOrBuilder
ValueTypeOrBuilder getSampleTypeOrBuilder()The type and unit of all Sample.values in this profile. For a cpu or off-cpu profile this might be: ["cpu","nanoseconds"] or ["off_cpu","nanoseconds"] For a heap profile, this might be: ["allocated_objects","count"] or ["allocated_space","bytes"],
.opentelemetry.proto.profiles.v1development.ValueType sample_type = 1; -
getSamplesList
The set of samples recorded in this profile.
repeated .opentelemetry.proto.profiles.v1development.Sample samples = 2; -
getSamples
The set of samples recorded in this profile.
repeated .opentelemetry.proto.profiles.v1development.Sample samples = 2; -
getSamplesCount
int getSamplesCount()The set of samples recorded in this profile.
repeated .opentelemetry.proto.profiles.v1development.Sample samples = 2; -
getSamplesOrBuilderList
List<? extends SampleOrBuilder> getSamplesOrBuilderList()The set of samples recorded in this profile.
repeated .opentelemetry.proto.profiles.v1development.Sample samples = 2; -
getSamplesOrBuilder
The set of samples recorded in this profile.
repeated .opentelemetry.proto.profiles.v1development.Sample samples = 2; -
getTimeUnixNano
long getTimeUnixNano()Time of collection (UTC) as nanoseconds since the UNIX epoch.
fixed64 time_unix_nano = 3;- Returns:
- The timeUnixNano.
-
getDurationNano
long getDurationNano()Duration of the profile in nanoseconds. For instant profiles like live heap snapshot, the duration can be zero but it may be preferable to set time_unix_nano to the process start time and duration_nano to the relative time when the profile was gathered so that Sample.timestamps_unix_nano values fall within the profile time range.
uint64 duration_nano = 4;- Returns:
- The durationNano.
-
hasPeriodType
boolean hasPeriodType()The type and the unit of the events between sampled occurrences for periodic sampling profiles. It can be the same as sample_type or it can be different depending on the case, for example: - sample_type=(cpu, milliseconds), period_type=(cpu, milliseconds), period=10 signals that we sample the program every 10 milliseconds and capture samples that each represent that sampling distance. - sample_type=(off_cpu, nanoseconds), period_type=(context_switch, count), period=1000 describes a profile where sampling is done every so often in terms of context switches, but the recorded metric is the time spent by the thread off CPU. - sample_type=(inuse_space, bytes), period_type=(allocated_bytes, bytes), period=262144 might represent a heap profile where the recorded sample metric is the size of the live heap while the periodic sampling is done using the number of cumulatively allocated bytes.
.opentelemetry.proto.profiles.v1development.ValueType period_type = 5;- Returns:
- Whether the periodType field is set.
-
getPeriodType
ValueType getPeriodType()The type and the unit of the events between sampled occurrences for periodic sampling profiles. It can be the same as sample_type or it can be different depending on the case, for example: - sample_type=(cpu, milliseconds), period_type=(cpu, milliseconds), period=10 signals that we sample the program every 10 milliseconds and capture samples that each represent that sampling distance. - sample_type=(off_cpu, nanoseconds), period_type=(context_switch, count), period=1000 describes a profile where sampling is done every so often in terms of context switches, but the recorded metric is the time spent by the thread off CPU. - sample_type=(inuse_space, bytes), period_type=(allocated_bytes, bytes), period=262144 might represent a heap profile where the recorded sample metric is the size of the live heap while the periodic sampling is done using the number of cumulatively allocated bytes.
.opentelemetry.proto.profiles.v1development.ValueType period_type = 5;- Returns:
- The periodType.
-
getPeriodTypeOrBuilder
ValueTypeOrBuilder getPeriodTypeOrBuilder()The type and the unit of the events between sampled occurrences for periodic sampling profiles. It can be the same as sample_type or it can be different depending on the case, for example: - sample_type=(cpu, milliseconds), period_type=(cpu, milliseconds), period=10 signals that we sample the program every 10 milliseconds and capture samples that each represent that sampling distance. - sample_type=(off_cpu, nanoseconds), period_type=(context_switch, count), period=1000 describes a profile where sampling is done every so often in terms of context switches, but the recorded metric is the time spent by the thread off CPU. - sample_type=(inuse_space, bytes), period_type=(allocated_bytes, bytes), period=262144 might represent a heap profile where the recorded sample metric is the size of the live heap while the periodic sampling is done using the number of cumulatively allocated bytes.
.opentelemetry.proto.profiles.v1development.ValueType period_type = 5; -
getPeriod
long getPeriod()The distance between sampled occurrences for periodic sampling profiles. The value is of the period_type type and unit.
int64 period = 6;- Returns:
- The period.
-
getProfileId
com.google.protobuf.ByteString getProfileId()A globally unique identifier for a profile. The ID is a 16-byte array. An ID with all zeroes is considered invalid. It MAY be used for deduplication and signal correlation purposes. It is acceptable to treat two profiles with different values in this field as not equal, even if they represented the same object at an earlier time. This field is optional; an ID may be assigned to an ID-less profile in a later step.
bytes profile_id = 7;- Returns:
- The profileId.
-
getDroppedAttributesCount
int getDroppedAttributesCount()The number of attributes that were discarded. Attributes can be discarded because their keys are too long or because there are too many attributes. If this value is 0, then no attributes were dropped.
uint32 dropped_attributes_count = 8;- Returns:
- The droppedAttributesCount.
-
getOriginalPayloadFormat
String getOriginalPayloadFormat()The original payload format. See also original_payload. It MUST be set together with original_payload or both left unset [optional]. The allowed values for the format string are defined by the OpenTelemetry specification. Some examples are "jfr", "pprof", "linux_perf". The original_payload MAY be used when converting from a source format (e.g. JFR) that carries information which cannot be losslessly represented in the Profiles format. Including the original data allows receivers to store or reexport the data without loss. Because the original payload can be large, its inclusion is optional.
string original_payload_format = 9;- Returns:
- The originalPayloadFormat.
-
getOriginalPayloadFormatBytes
com.google.protobuf.ByteString getOriginalPayloadFormatBytes()The original payload format. See also original_payload. It MUST be set together with original_payload or both left unset [optional]. The allowed values for the format string are defined by the OpenTelemetry specification. Some examples are "jfr", "pprof", "linux_perf". The original_payload MAY be used when converting from a source format (e.g. JFR) that carries information which cannot be losslessly represented in the Profiles format. Including the original data allows receivers to store or reexport the data without loss. Because the original payload can be large, its inclusion is optional.
string original_payload_format = 9;- Returns:
- The bytes for originalPayloadFormat.
-
getOriginalPayload
com.google.protobuf.ByteString getOriginalPayload()The original payload bytes. See also original_payload_format. It MUST be set together with original_payload_format or both left unset [optional].
bytes original_payload = 10;- Returns:
- The originalPayload.
-
getAttributeIndicesList
References to attributes in attribute_table. [optional]
repeated int32 attribute_indices = 11;- Returns:
- A list containing the attributeIndices.
-
getAttributeIndicesCount
int getAttributeIndicesCount()References to attributes in attribute_table. [optional]
repeated int32 attribute_indices = 11;- Returns:
- The count of attributeIndices.
-
getAttributeIndices
int getAttributeIndices(int index) References to attributes in attribute_table. [optional]
repeated int32 attribute_indices = 11;- Parameters:
index- The index of the element to return.- Returns:
- The attributeIndices at the given index.
-