« blib/lib/Devel/Trepan/CmdProcessor/Command/Show_Subcmd/Max_Subcmd/Width.pm
↑ Summary
blib/lib/Devel/Trepan/CmdProcessor/Command/Show_Subcmd/Trace.pm »
| 1 | # -*- coding: utf-8 -*- | ||
| 2 | # Copyright (C) 2011, 2014 Rocky Bernstein <rocky@cpan.org> | ||
| 3 | use warnings; no warnings 'redefine'; no warnings 'once'; | ||
| 4 | use rlib '../../../../..'; | ||
| 5 | |||
| 6 | package Devel::Trepan::CmdProcessor::Command::Show::Timer; | ||
| 7 | |||
| 8 | use Devel::Trepan::CmdProcessor::Command::Subcmd::Core; | ||
| 9 | |||
| 10 | @ISA = qw(Devel::Trepan::CmdProcessor::Command::ShowBoolSubcmd); | ||
| 11 | # Values inherited from parent | ||
| 12 | use vars @Devel::Trepan::CmdProcessor::Command::Subcmd::SUBCMD_VARS; | ||
| 13 | # =pod | ||
| 14 | # | ||
| 15 | # =head2 Synopsis: | ||
| 16 | # | ||
| 17 | # =cut | ||
| 18 | our $HELP = <<"EOH"; | ||
| 19 | =pod | ||
| 20 | |||
| 21 | B<show timer> | ||
| 22 | |||
| 23 | Show status of the timing hook. | ||
| 24 | |||
| 25 | =head2 See also: | ||
| 26 | |||
| 27 | L<C<set timer>|Devel::Trepan::CmdProcessor::Command::Set::Timer> | ||
| 28 | =cut | ||
| 29 | EOH | ||
| 30 | our $SHORT_HELP = "Show status of the timing hook"; | ||
| 31 | our $MIN_ABBREV = length('ti'); | ||
| 32 | |||
| 33 | unless (caller) { | ||
| 34 | # Demo it. | ||
| 35 | # require_relative '../../mock' | ||
| 36 | |||
| 37 | # # FIXME: DRY the below code | ||
| 38 | # my ($dbgr, $cmd) = MockDebugger::setup('show'); | ||
| 39 | # $subcommand = __PACKAGE__->new(cmd); | ||
| 40 | # my $testcmdMgr = Trepan::Subcmd.new(subcommand); | ||
| 41 | |||
| 42 | # $subcommand->run_show_bool(); | ||
| 43 | # $subcommand->summary_help($NAME); | ||
| 44 | } | ||
| 45 | |||
| 46 | 1; |