Location
extends Message
in package
Describes function and line table debug information.
Generated from protobuf message opentelemetry.proto.profiles.v1development.Location
Table of Contents
Properties
- $address : mixed
- The instruction address for this location, if available. It should be within [Mapping.memory_start...Mapping.memory_limit] for the corresponding mapping. A non-leaf address may be in the middle of a call instruction. It is up to display tools to find the beginning of the instruction if necessary.
- $mapping_index : mixed
- Reference to mapping in ProfilesDictionary.mapping_table.
- $attribute_indices : mixed
- References to attributes in ProfilesDictionary.attribute_table. [optional]
- $line : mixed
- Multiple line indicates this location has inlined functions, where the last entry represents the caller into which the preceding entries were inlined.
Methods
- __construct() : mixed
- Constructor.
- getAddress() : int|string
- The instruction address for this location, if available. It should be within [Mapping.memory_start...Mapping.memory_limit] for the corresponding mapping. A non-leaf address may be in the middle of a call instruction. It is up to display tools to find the beginning of the instruction if necessary.
- getAttributeIndices() : RepeatedField
- References to attributes in ProfilesDictionary.attribute_table. [optional]
- getLine() : RepeatedField
- Multiple line indicates this location has inlined functions, where the last entry represents the caller into which the preceding entries were inlined.
- getMappingIndex() : int
- Reference to mapping in ProfilesDictionary.mapping_table.
- setAddress() : $this
- The instruction address for this location, if available. It should be within [Mapping.memory_start...Mapping.memory_limit] for the corresponding mapping. A non-leaf address may be in the middle of a call instruction. It is up to display tools to find the beginning of the instruction if necessary.
- setAttributeIndices() : $this
- References to attributes in ProfilesDictionary.attribute_table. [optional]
- setLine() : $this
- Multiple line indicates this location has inlined functions, where the last entry represents the caller into which the preceding entries were inlined.
- setMappingIndex() : $this
- Reference to mapping in ProfilesDictionary.mapping_table.
Properties
$address
The instruction address for this location, if available. It should be within [Mapping.memory_start...Mapping.memory_limit] for the corresponding mapping. A non-leaf address may be in the middle of a call instruction. It is up to display tools to find the beginning of the instruction if necessary.
protected
mixed
$address
= 0
Generated from protobuf field uint64 address = 2;
$mapping_index
Reference to mapping in ProfilesDictionary.mapping_table.
protected
mixed
$mapping_index
= 0
It can be unset / set to 0 if the mapping is unknown or not applicable for this profile type, as mapping_table[0] is always a 'null' default mapping.
Generated from protobuf field int32 mapping_index = 1;
$attribute_indices
References to attributes in ProfilesDictionary.attribute_table. [optional]
private
mixed
$attribute_indices
Generated from protobuf field repeated int32 attribute_indices = 4;
$line
Multiple line indicates this location has inlined functions, where the last entry represents the caller into which the preceding entries were inlined.
private
mixed
$line
E.g., if memcpy() is inlined into printf: line[0].function_name == "memcpy" line[1].function_name == "printf"
Generated from protobuf field repeated .opentelemetry.proto.profiles.v1development.Line line = 3;
Methods
__construct()
Constructor.
public
__construct([array<string|int, mixed> $data = null ]) : mixed
Parameters
- $data : array<string|int, mixed> = null
-
{ Optional. Data for populating the Message object.
@type int $mapping_index Reference to mapping in ProfilesDictionary.mapping_table. It can be unset / set to 0 if the mapping is unknown or not applicable for this profile type, as mapping_table[0] is always a 'null' default mapping. @type int|string $address The instruction address for this location, if available. It should be within [Mapping.memory_start...Mapping.memory_limit] for the corresponding mapping. A non-leaf address may be in the middle of a call instruction. It is up to display tools to find the beginning of the instruction if necessary. @type \Opentelemetry\Proto\Profiles\V1development\Line[]|\Google\Protobuf\Internal\RepeatedField $line Multiple line indicates this location has inlined functions, where the last entry represents the caller into which the preceding entries were inlined. E.g., if memcpy() is inlined into printf: line[0].function_name == "memcpy" line[1].function_name == "printf" @type int[]|\Google\Protobuf\Internal\RepeatedField $attribute_indices References to attributes in ProfilesDictionary.attribute_table. [optional]}
getAddress()
The instruction address for this location, if available. It should be within [Mapping.memory_start...Mapping.memory_limit] for the corresponding mapping. A non-leaf address may be in the middle of a call instruction. It is up to display tools to find the beginning of the instruction if necessary.
public
getAddress() : int|string
Generated from protobuf field uint64 address = 2;
Return values
int|stringgetAttributeIndices()
References to attributes in ProfilesDictionary.attribute_table. [optional]
public
getAttributeIndices() : RepeatedField
Generated from protobuf field repeated int32 attribute_indices = 4;
Return values
RepeatedFieldgetLine()
Multiple line indicates this location has inlined functions, where the last entry represents the caller into which the preceding entries were inlined.
public
getLine() : RepeatedField
E.g., if memcpy() is inlined into printf: line[0].function_name == "memcpy" line[1].function_name == "printf"
Generated from protobuf field repeated .opentelemetry.proto.profiles.v1development.Line line = 3;
Return values
RepeatedFieldgetMappingIndex()
Reference to mapping in ProfilesDictionary.mapping_table.
public
getMappingIndex() : int
It can be unset / set to 0 if the mapping is unknown or not applicable for this profile type, as mapping_table[0] is always a 'null' default mapping.
Generated from protobuf field int32 mapping_index = 1;
Return values
intsetAddress()
The instruction address for this location, if available. It should be within [Mapping.memory_start...Mapping.memory_limit] for the corresponding mapping. A non-leaf address may be in the middle of a call instruction. It is up to display tools to find the beginning of the instruction if necessary.
public
setAddress(int|string $var) : $this
Generated from protobuf field uint64 address = 2;
Parameters
- $var : int|string
Return values
$thissetAttributeIndices()
References to attributes in ProfilesDictionary.attribute_table. [optional]
public
setAttributeIndices(array<string|int, int>|RepeatedField $var) : $this
Generated from protobuf field repeated int32 attribute_indices = 4;
Parameters
- $var : array<string|int, int>|RepeatedField
Return values
$thissetLine()
Multiple line indicates this location has inlined functions, where the last entry represents the caller into which the preceding entries were inlined.
public
setLine(array<string|int, Line>|RepeatedField $var) : $this
E.g., if memcpy() is inlined into printf: line[0].function_name == "memcpy" line[1].function_name == "printf"
Generated from protobuf field repeated .opentelemetry.proto.profiles.v1development.Line line = 3;
Parameters
- $var : array<string|int, Line>|RepeatedField
Return values
$thissetMappingIndex()
Reference to mapping in ProfilesDictionary.mapping_table.
public
setMappingIndex(int $var) : $this
It can be unset / set to 0 if the mapping is unknown or not applicable for this profile type, as mapping_table[0] is always a 'null' default mapping.
Generated from protobuf field int32 mapping_index = 1;
Parameters
- $var : int