← Index
NYTProf Performance Profile   « block view • line view • sub view »
For bin/hailo
  Run on Thu Oct 21 22:50:37 2010
Reported on Thu Oct 21 22:52:15 2010

Filename/mnt/stuff/src/my-cpan/hailo/lib/Hailo/Role/Engine.pm
StatementsExecuted 13 statements in 212µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11158µs140µsHailo::Role::Engine::::BEGIN@3Hailo::Role::Engine::BEGIN@3
11115µs1.42msHailo::Role::Engine::::BEGIN@5Hailo::Role::Engine::BEGIN@5
11112µs82µsHailo::Role::Engine::::BEGIN@3.17Hailo::Role::Engine::BEGIN@3.17
11112µs421µsHailo::Role::Engine::::BEGIN@4Hailo::Role::Engine::BEGIN@4
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
3478µs3292µs
# spent 82µs (12+70) within Hailo::Role::Engine::BEGIN@3.17 which was called: # once (12µs+70µs) by Hailo::Role::Engine::BEGIN@3 at line 3 # spent 140µs (58+82) within Hailo::Role::Engine::BEGIN@3 which was called: # once (58µs+82µs) by Mouse::Util::_try_load_one_class at line 3
use 5.010;
# spent 140µs making 1 call to Hailo::Role::Engine::BEGIN@3 # spent 82µs making 1 call to Hailo::Role::Engine::BEGIN@3.17 # spent 70µs making 1 call to feature::import
4231µs2830µs
# spent 421µs (12+409) within Hailo::Role::Engine::BEGIN@4 which was called: # once (12µs+409µs) by Mouse::Util::_try_load_one_class at line 4
use Any::Moose '::Role';
# spent 421µs making 1 call to Hailo::Role::Engine::BEGIN@4 # spent 409µs making 1 call to Any::Moose::import
5274µs22.82ms
# spent 1.42ms (15µs+1.40) within Hailo::Role::Engine::BEGIN@5 which was called: # once (15µs+1.40ms) by Mouse::Util::_try_load_one_class at line 5
use namespace::clean -except => 'meta';
# spent 1.42ms making 1 call to Hailo::Role::Engine::BEGIN@5 # spent 1.40ms making 1 call to namespace::clean::import
6
715µs141µshas storage => (
# spent 41µs making 1 call to Mouse::Role::has
8 required => 1,
9 is => 'ro',
10 documentation => "Our copy of the current Storage object",
11);
12
1314µs131µshas order => (
# spent 31µs making 1 call to Mouse::Role::has
14 required => 1,
15 isa => 'Int',
16 is => 'rw',
17 documentation => "Our copy of the current markov order",
18);
19
2014µs166µsrequires 'learn';
# spent 66µs making 1 call to Mouse::Role::requires
2113µs151µsrequires 'reply';
# spent 51µs making 1 call to Mouse::Role::requires
22
2317µs1;
24
25=encoding utf8
26
27=head1 NAME
28
29Hailo::Role::Engine - A role representing a L<Hailo|Hailo> engine backend
30
31=head1 ATTRIBUTES
32
33A C<Hailo::Engine::*> gets the following attributes by using this role:
34
35=head2 C<storage>
36
37A L<storage|Hailo::Role::Storage> object the engine should use to get data from.
38
39=head2 C<order>
40
41The current Markov order used by the storage object.
42
43=head1 METHODS
44
45=head2 C<new>
46
47This is the constructor. It accept the attributes specified in
48L</ATTRIBUTES>.
49
50=head2 C<learn>
51
52Learn from the given input and add it to storage.
53
54=head2 C<reply>
55
56Reply to the given input using the storad data.
57
58=head1 AUTHOR
59
60E<AElig>var ArnfjE<ouml>rE<eth> Bjarmason <avar@cpan.org>
61
62=head1 LICENSE AND COPYRIGHT
63
64Copyright 2010 E<AElig>var ArnfjE<ouml>rE<eth> Bjarmason.
65
66This program is free software, you can redistribute it and/or modify
67it under the same terms as Perl itself.
68
6918µs14.39ms=cut