File | /usr/local/lib/perl/5.10.0/Moose/Deprecated.pm |
Statements Executed | 13 |
Total Time | 0.0002222 seconds |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
0 | 0 | 0 | 0s | 0s | BEGIN | Moose::Deprecated::
Line | Stmts. | Exclusive Time | Avg. | Code |
---|---|---|---|---|
1 | package Moose::Deprecated; | |||
2 | ||||
3 | 3 | 26µs | 9µs | use strict; # spent 10µs making 1 call to strict::import |
4 | 3 | 112µs | 37µs | use warnings; # spent 23µs making 1 call to warnings::import |
5 | ||||
6 | 1 | 700ns | 700ns | our $VERSION = '1.15'; |
7 | 1 | 30µs | 30µs | $VERSION = eval $VERSION; |
8 | 1 | 600ns | 600ns | our $AUTHORITY = 'cpan:STEVAN'; |
9 | ||||
10 | use Package::DeprecationManager -deprecations => { # spent 222µs making 1 call to Package::DeprecationManager::import | |||
11 | 'default is for Native Trait' => '1.14', | |||
12 | 'default default for Native Trait' => '1.14', | |||
13 | 'coerce without coercion' => '1.08', | |||
14 | 'pre-0.94 MetaRole API' => '0.94', | |||
15 | 'alias or excludes' => '0.89', | |||
16 | 'Role type' => '0.84', | |||
17 | 'subtype without sugar' => '0.72', | |||
18 | 'type without sugar' => '0.72', | |||
19 | 'Moose::init_meta' => '0.56', | |||
20 | }, | |||
21 | -ignore => [ | |||
22 | qw( Moose | |||
23 | Moose::Exporter | |||
24 | Moose::Meta::Attribute | |||
25 | Moose::Meta::Class | |||
26 | Moose::Util::MetaRole | |||
27 | ) | |||
28 | ], | |||
29 | 3 | 49µs | 16µs | ; |
30 | ||||
31 | 1 | 4µs | 4µs | 1; |
32 | ||||
33 | __END__ | |||
34 | ||||
35 | =pod | |||
36 | ||||
37 | =head1 NAME | |||
38 | ||||
39 | Moose::Deprecated - Manages deprecation warnings for Moose | |||
40 | ||||
41 | =head1 DESCRIPTION | |||
42 | ||||
43 | use Moose::Deprecated -api_version => $version; | |||
44 | ||||
45 | =head1 FUNCTIONS | |||
46 | ||||
47 | This module manages deprecation warnings for features that have been | |||
48 | deprecated in Moose. | |||
49 | ||||
50 | If you specify C<< -api_version => $version >>, you can use deprecated features | |||
51 | without warnings. Note that this special treatment is limited to the package | |||
52 | that loads C<Moose::Deprecated>. | |||
53 | ||||
54 | =head1 AUTHORS | |||
55 | ||||
56 | Dave Rolsky E<lt>autarch@urth.orgE<gt> | |||
57 | ||||
58 | =head1 COPYRIGHT AND LICENSE | |||
59 | ||||
60 | Copyright 2006-2010 by Infinity Interactive, Inc. | |||
61 | ||||
62 | L<http://www.iinteractive.com> | |||
63 | ||||
64 | This library is free software; you can redistribute it and/or modify | |||
65 | it under the same terms as Perl itself. | |||
66 | ||||
67 | =cut |