Stackdriver Trace V2 Client - Class StackFrames (1.7.0)

Reference documentation and code samples for the Stackdriver Trace V2 Client class StackFrames.

A collection of stack frames, which can be truncated.

Generated from protobuf message google.devtools.cloudtrace.v2.StackTrace.StackFrames

Namespace

Google \ Cloud \ Trace \ V2 \ StackTrace

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ frame array<Google\Cloud\Trace\V2\StackTrace\StackFrame>

Stack frames in this call stack.

↳ dropped_frames_count int

The number of stack frames that were dropped because there were too many stack frames. If this value is 0, then no stack frames were dropped.

getFrame

Stack frames in this call stack.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setFrame

Stack frames in this call stack.

Parameter
NameDescription
var array<Google\Cloud\Trace\V2\StackTrace\StackFrame>
Returns
TypeDescription
$this

getDroppedFramesCount

The number of stack frames that were dropped because there were too many stack frames.

If this value is 0, then no stack frames were dropped.

Returns
TypeDescription
int

setDroppedFramesCount

The number of stack frames that were dropped because there were too many stack frames.

If this value is 0, then no stack frames were dropped.

Parameter
NameDescription
var int
Returns
TypeDescription
$this