Reference documentation and code samples for the Stackdriver Trace V2 Client class StackFrame.
Represents a single stack frame in a stack trace.
Generated from protobuf message google.devtools.cloudtrace.v2.StackTrace.StackFrame
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ function_name |
Google\Cloud\Trace\V2\TruncatableString
The fully-qualified name that uniquely identifies the function or method that is active in this frame (up to 1024 bytes). |
↳ original_function_name |
Google\Cloud\Trace\V2\TruncatableString
An un-mangled function name, if |
↳ file_name |
Google\Cloud\Trace\V2\TruncatableString
The name of the source file where the function call appears (up to 256 bytes). |
↳ line_number |
int|string
The line number in |
↳ column_number |
int|string
The column number where the function call appears, if available. This is important in JavaScript because of its anonymous functions. |
↳ load_module |
Google\Cloud\Trace\V2\Module
The binary module from where the code was loaded. |
↳ source_version |
Google\Cloud\Trace\V2\TruncatableString
The version of the deployed source code (up to 128 bytes). |
getFunctionName
The fully-qualified name that uniquely identifies the function or method that is active in this frame (up to 1024 bytes).
Generated from protobuf field .google.devtools.cloudtrace.v2.TruncatableString function_name = 1;
Returns | |
---|---|
Type | Description |
Google\Cloud\Trace\V2\TruncatableString|null |
hasFunctionName
clearFunctionName
setFunctionName
The fully-qualified name that uniquely identifies the function or method that is active in this frame (up to 1024 bytes).
Generated from protobuf field .google.devtools.cloudtrace.v2.TruncatableString function_name = 1;
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Trace\V2\TruncatableString
|
Returns | |
---|---|
Type | Description |
$this |
getOriginalFunctionName
An un-mangled function name, if function_name
is
mangled. The name can
be fully-qualified (up to 1024 bytes).
Generated from protobuf field .google.devtools.cloudtrace.v2.TruncatableString original_function_name = 2;
Returns | |
---|---|
Type | Description |
Google\Cloud\Trace\V2\TruncatableString|null |
hasOriginalFunctionName
clearOriginalFunctionName
setOriginalFunctionName
An un-mangled function name, if function_name
is
mangled. The name can
be fully-qualified (up to 1024 bytes).
Generated from protobuf field .google.devtools.cloudtrace.v2.TruncatableString original_function_name = 2;
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Trace\V2\TruncatableString
|
Returns | |
---|---|
Type | Description |
$this |
getFileName
The name of the source file where the function call appears (up to 256 bytes).
Generated from protobuf field .google.devtools.cloudtrace.v2.TruncatableString file_name = 3;
Returns | |
---|---|
Type | Description |
Google\Cloud\Trace\V2\TruncatableString|null |
hasFileName
clearFileName
setFileName
The name of the source file where the function call appears (up to 256 bytes).
Generated from protobuf field .google.devtools.cloudtrace.v2.TruncatableString file_name = 3;
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Trace\V2\TruncatableString
|
Returns | |
---|---|
Type | Description |
$this |
getLineNumber
The line number in file_name
where the function call appears.
Generated from protobuf field int64 line_number = 4;
Returns | |
---|---|
Type | Description |
int|string |
setLineNumber
The line number in file_name
where the function call appears.
Generated from protobuf field int64 line_number = 4;
Parameter | |
---|---|
Name | Description |
var |
int|string
|
Returns | |
---|---|
Type | Description |
$this |
getColumnNumber
The column number where the function call appears, if available.
This is important in JavaScript because of its anonymous functions.
Generated from protobuf field int64 column_number = 5;
Returns | |
---|---|
Type | Description |
int|string |
setColumnNumber
The column number where the function call appears, if available.
This is important in JavaScript because of its anonymous functions.
Generated from protobuf field int64 column_number = 5;
Parameter | |
---|---|
Name | Description |
var |
int|string
|
Returns | |
---|---|
Type | Description |
$this |
getLoadModule
The binary module from where the code was loaded.
Generated from protobuf field .google.devtools.cloudtrace.v2.Module load_module = 6;
Returns | |
---|---|
Type | Description |
Google\Cloud\Trace\V2\Module|null |
hasLoadModule
clearLoadModule
setLoadModule
The binary module from where the code was loaded.
Generated from protobuf field .google.devtools.cloudtrace.v2.Module load_module = 6;
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Trace\V2\Module
|
Returns | |
---|---|
Type | Description |
$this |
getSourceVersion
The version of the deployed source code (up to 128 bytes).
Generated from protobuf field .google.devtools.cloudtrace.v2.TruncatableString source_version = 7;
Returns | |
---|---|
Type | Description |
Google\Cloud\Trace\V2\TruncatableString|null |
hasSourceVersion
clearSourceVersion
setSourceVersion
The version of the deployed source code (up to 128 bytes).
Generated from protobuf field .google.devtools.cloudtrace.v2.TruncatableString source_version = 7;
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Trace\V2\TruncatableString
|
Returns | |
---|---|
Type | Description |
$this |