Subject: | Enhancement: no_args parameter |
For the application with which I'm using Devel::StackTrace, the collection
of @DB::args has proven to be problematic, causing a large increase in
memory usage and significant slowdown both with and without no_refs
specified.
To that end I'd like to propose the addition of the no_args parameter
which will skip the collection and storage of them altogether. I have
attached a diff of changes to see if this is something you think might be
implemented.
Subject: | devel-stacktrace.diff |
7a8
> use lib "External";
46,47c47,48
< my @c
< = do { package # the newline keeps dzil from adding a version here
---
> my @c = $self->{no_args} ? caller($x++) :
> do { package # the newline keeps dzil from adding a version here
53c54
< my @args = @DB::args;
---
> my @args = @DB::args unless $self->{no_args};
55c56
< if ( $self->{no_refs} ) {
---
> if ( $self->{no_refs} or $self->{no_args} ) {
355a357,361
> =item * no_args => $boolean
>
> If this parameter is true, then Devel::StackTrace will not attempt
> to retrieve the arguments of the stacktrace frame at all.
>