← Index
NYTProf Performance Profile   « block view • line view • sub view »
For reply.pl
  Run on Thu Oct 21 22:40:13 2010
Reported on Thu Oct 21 22:44:38 2010

Filename/home/hinrik/perl5/perlbrew/perls/perl-5.13.5/lib/site_perl/5.13.5/Hailo/Role/Engine.pm
StatementsExecuted 15 statements in 333µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11171µs171µsHailo::Role::Engine::::BEGIN@9Hailo::Role::Engine::BEGIN@9
11131µs31µsHailo::Role::Engine::::BEGIN@2Hailo::Role::Engine::BEGIN@2
11115µs100µsHailo::Role::Engine::::BEGIN@9.12Hailo::Role::Engine::BEGIN@9.12
11113µs1.42msHailo::Role::Engine::::BEGIN@11Hailo::Role::Engine::BEGIN@11
11113µs458µsHailo::Role::Engine::::BEGIN@10Hailo::Role::Engine::BEGIN@10
1117µs7µsHailo::Role::Engine::::BEGIN@5Hailo::Role::Engine::BEGIN@5
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1package Hailo::Role::Engine;
2
# spent 31µs within Hailo::Role::Engine::BEGIN@2 which was called: # once (31µs+0s) by Mouse::Util::_try_load_one_class at line 4
BEGIN {
319µs $Hailo::Role::Engine::AUTHORITY = 'cpan:AVAR';
4138µs131µs}
# spent 31µs making 1 call to Hailo::Role::Engine::BEGIN@2
5
# spent 7µs within Hailo::Role::Engine::BEGIN@5 which was called: # once (7µs+0s) by Mouse::Util::_try_load_one_class at line 7
BEGIN {
617µs $Hailo::Role::Engine::VERSION = '0.57';
7128µs17µs}
# spent 7µs making 1 call to Hailo::Role::Engine::BEGIN@5
8
94116µs3355µs
# spent 100µs (15+84) within Hailo::Role::Engine::BEGIN@9.12 which was called: # once (15µs+84µs) by Hailo::Role::Engine::BEGIN@9 at line 9 # spent 171µs (71+100) within Hailo::Role::Engine::BEGIN@9 which was called: # once (71µs+100µs) by Mouse::Util::_try_load_one_class at line 9
use 5.010;
# spent 171µs making 1 call to Hailo::Role::Engine::BEGIN@9 # spent 100µs making 1 call to Hailo::Role::Engine::BEGIN@9.12 # spent 84µs making 1 call to feature::import
10233µs2903µs
# spent 458µs (13+445) within Hailo::Role::Engine::BEGIN@10 which was called: # once (13µs+445µs) by Mouse::Util::_try_load_one_class at line 10
use Any::Moose '::Role';
# spent 458µs making 1 call to Hailo::Role::Engine::BEGIN@10 # spent 445µs making 1 call to Any::Moose::import
11273µs22.82ms
# spent 1.42ms (13µs+1.41) within Hailo::Role::Engine::BEGIN@11 which was called: # once (13µs+1.41ms) by Mouse::Util::_try_load_one_class at line 11
use namespace::clean -except => 'meta';
# spent 1.42ms making 1 call to Hailo::Role::Engine::BEGIN@11 # spent 1.41ms making 1 call to namespace::clean::import
12
1314µs140µshas storage => (
# spent 40µs making 1 call to Mouse::Role::has
14 required => 1,
15 is => 'ro',
16 documentation => "Our copy of the current Storage object",
17);
18
1914µs132µshas order => (
# spent 32µs making 1 call to Mouse::Role::has
20 required => 1,
21 isa => 'Int',
22 is => 'rw',
23 documentation => "Our copy of the current markov order",
24);
25
2614µs162µsrequires 'learn';
# spent 62µs making 1 call to Mouse::Role::requires
2713µs150µsrequires 'reply';
# spent 50µs making 1 call to Mouse::Role::requires
28
2917µs1;
30
31=encoding utf8
32
33=head1 NAME
34
35Hailo::Role::Engine - A role representing a L<Hailo|Hailo> engine backend
36
37=head1 ATTRIBUTES
38
39A C<Hailo::Engine::*> gets the following attributes by using this role:
40
41=head2 C<storage>
42
43A L<storage|Hailo::Role::Storage> object the engine should use to get data from.
44
45=head2 C<order>
46
47The current Markov order used by the storage object.
48
49=head1 METHODS
50
51=head2 C<new>
52
53This is the constructor. It accept the attributes specified in
54L</ATTRIBUTES>.
55
56=head2 C<learn>
57
58Learn from the given input and add it to storage.
59
60=head2 C<reply>
61
62Reply to the given input using the storad data.
63
64=head1 AUTHOR
65
66E<AElig>var ArnfjE<ouml>rE<eth> Bjarmason <avar@cpan.org>
67
68=head1 LICENSE AND COPYRIGHT
69
70Copyright 2010 E<AElig>var ArnfjE<ouml>rE<eth> Bjarmason.
71
72This program is free software, you can redistribute it and/or modify
73it under the same terms as Perl itself.
74
7518µs14.35ms=cut