| 1 | package Parse::StackTrace::Type::Python::Thread; | ||
| 2 | 2 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | |||
| 4 | 2 | extends 'Parse::StackTrace::Thread'; | |
| 5 | |||
| 6 | 22 | ▶ | sub add_frame { |
|
Subroutine
add_frame: called CC=2 SCAR=6.9
Pod
undocumented
| |||
| 7 | 22 | my $self = shift; | |
| 8 | 22 | $self->_unshift_frame(@_); | |
| 9 | 22 | my $count = 0; | |
| 10 | 22 | foreach my $frame (@{ $self->frames }) { | |
| 11 | 66 | $frame->{number} = $count; | |
| 12 | 66 | $count++; | |
| 13 | } | ||
| 14 | } | ||
| 15 | |||
| 16 | 20 | ▶ | sub frame_number { |
|
Subroutine
frame_number: called CC=1 SCAR=0.0
Pod
documented
| |||
| 17 | 20 | return $_[0]->frames->[$_[1]]; | |
| 18 | } | ||
| 19 | |||
| 20 | 10 | ▶ | sub frame_with_crash { return $_[0]->frame_number(0) }; |
|
Subroutine
frame_with_crash: called CC=1 SCAR=0.0
Pod
documented
| |||
| 21 | |||
| 22 | 2 | __PACKAGE__->meta->make_immutable; | |
| 23 | |||
| 24 | 2 | 1; | |
| 25 | |||
| 26 | __END__ | ||