Commit | Line | Data |
8e30e889 |
1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
2 | <html xmlns="http://www.w3.org/1999/xhtml"> |
3 | <!-- |
4 | This file was generated by Devel::NYTProf version 4.06 |
5 | --> |
6 | <head> |
7 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
8 | <meta http-equiv="Content-Language" content="en-us" /> |
9 | <title>Profile of Scope/Guard.pm</title> |
10 | <link rel="stylesheet" type="text/css" href="style.css" /> |
11 | <script type="text/javascript" src="js/jquery-min.js"></script> |
12 | |
13 | <script type="text/javascript" src="js/jquery-tablesorter-min.js"></script> |
14 | <link rel="stylesheet" type="text/css" href="js/style-tablesorter.css" /> |
15 | <script type="text/javascript"> |
16 | // when a column is first clicked on to sort it, use descending order |
17 | // XXX doesn't seem to work (and not just because the tablesorter formatSortingOrder() is broken) |
18 | $.tablesorter.defaults.sortInitialOrder = "desc"; |
19 | // add parser through the tablesorter addParser method |
20 | $.tablesorter.addParser({ |
21 | id: 'fmt_time', // name of this parser |
22 | is: function(s) { |
23 | return false; // return false so this parser is not auto detected |
24 | }, |
25 | format: function(orig) { // format data for normalization |
26 | // console.log(orig); |
27 | val = orig.replace(/ns/,''); |
28 | if (val != orig) { return val / (1000*1000*1000); } |
29 | val = orig.replace(/µs/,''); /* XXX use µ ? */ |
30 | if (val != orig) { return val / (1000*1000); } |
31 | var val = orig.replace(/ms/,''); |
32 | if (val != orig) { return val / (1000); } |
33 | var val = orig.replace(/s/,''); |
34 | if (val != orig) { return val; } |
35 | if (orig == '0') { return orig; } |
36 | console.log('no match for fmt_time of '.concat(orig)); |
37 | return orig; |
38 | }, |
39 | type: 'numeric' // set type, either numeric or text |
40 | }); |
41 | </script> |
42 | </head> |
43 | |
44 | <body > |
45 | <div class="header" style="position: relative; overflow-x: hidden; overflow-y: hidden; z-index: 0; "> |
46 | <div class="header_back"> |
47 | <a href="index.html">← Index</a> |
48 | </div> |
49 | <div class="headerForeground" style="float: left"> |
50 | <span class="siteTitle">NYTProf Performance Profile</span> |
51 | <span class="siteSubtitle">  <span>« <span class="mode_btn mode_btn_selected">block view</span> • <span class="mode_btn"><a href="Scope-Guard-pm-1527-line.html">line view</a></span> • <span class="mode_btn"><a href="Scope-Guard-pm-1527-sub.html">sub view</a></span> »</span><br /> |
52 | For script/nytprof.pl |
53 | </span> |
54 | </div> |
55 | <div class="headerForeground" style="float: right; text-align: right"> |
56 | <span class="siteTitle"> </span> |
57 | <span class="siteSubtitle">Run on Thu May 31 16:49:15 2012<br />Reported on Thu May 31 16:52:54 2012</span> |
58 | </div> |
59 | <div style="position: absolute; left: 0px; top: 0%; width: 100%; height: 101%; z-index: -1; background-color: rgb(17, 136, 255); "></div> |
60 | <div style="position: absolute; left: 0px; top: 2%; width: 100%; height: 99%; z-index: -1; background-color: rgb(16, 134, 253); "></div> |
61 | <div style="position: absolute; left: 0px; top: 4%; width: 100%; height: 97%; z-index: -1; background-color: rgb(16, 133, 252); "></div> |
62 | <div style="position: absolute; left: 0px; top: 6%; width: 100%; height: 95%; z-index: -1; background-color: rgb(15, 131, 250); "></div> |
63 | <div style="position: absolute; left: 0px; top: 8%; width: 100%; height: 93%; z-index: -1; background-color: rgb(15, 130, 249); "></div> |
64 | <div style="position: absolute; left: 0px; top: 10%; width: 100%; height: 91%; z-index: -1; background-color: rgb(15, 129, 248); "></div> |
65 | <div style="position: absolute; left: 0px; top: 12%; width: 100%; height: 89%; z-index: -1; background-color: rgb(14, 127, 246); "></div> |
66 | <div style="position: absolute; left: 0px; top: 14%; width: 100%; height: 87%; z-index: -1; background-color: rgb(14, 126, 245); "></div> |
67 | <div style="position: absolute; left: 0px; top: 16%; width: 100%; height: 85%; z-index: -1; background-color: rgb(14, 125, 244); "></div> |
68 | <div style="position: absolute; left: 0px; top: 18%; width: 100%; height: 83%; z-index: -1; background-color: rgb(13, 123, 242); "></div> |
69 | <div style="position: absolute; left: 0px; top: 20%; width: 100%; height: 81%; z-index: -1; background-color: rgb(13, 122, 241); "></div> |
70 | <div style="position: absolute; left: 0px; top: 22%; width: 100%; height: 79%; z-index: -1; background-color: rgb(13, 121, 240); "></div> |
71 | <div style="position: absolute; left: 0px; top: 24%; width: 100%; height: 77%; z-index: -1; background-color: rgb(12, 119, 238); "></div> |
72 | <div style="position: absolute; left: 0px; top: 26%; width: 100%; height: 75%; z-index: -1; background-color: rgb(12, 118, 237); "></div> |
73 | <div style="position: absolute; left: 0px; top: 28%; width: 100%; height: 73%; z-index: -1; background-color: rgb(12, 116, 235); "></div> |
74 | <div style="position: absolute; left: 0px; top: 30%; width: 100%; height: 71%; z-index: -1; background-color: rgb(11, 115, 234); "></div> |
75 | <div style="position: absolute; left: 0px; top: 32%; width: 100%; height: 69%; z-index: -1; background-color: rgb(11, 114, 233); "></div> |
76 | <div style="position: absolute; left: 0px; top: 34%; width: 100%; height: 67%; z-index: -1; background-color: rgb(11, 112, 231); "></div> |
77 | <div style="position: absolute; left: 0px; top: 36%; width: 100%; height: 65%; z-index: -1; background-color: rgb(10, 111, 230); "></div> |
78 | <div style="position: absolute; left: 0px; top: 38%; width: 100%; height: 63%; z-index: -1; background-color: rgb(10, 110, 229); "></div> |
79 | <div style="position: absolute; left: 0px; top: 40%; width: 100%; height: 61%; z-index: -1; background-color: rgb(10, 108, 227); "></div> |
80 | <div style="position: absolute; left: 0px; top: 42%; width: 100%; height: 59%; z-index: -1; background-color: rgb(9, 107, 226); "></div> |
81 | <div style="position: absolute; left: 0px; top: 44%; width: 100%; height: 57%; z-index: -1; background-color: rgb(9, 106, 225); "></div> |
82 | <div style="position: absolute; left: 0px; top: 46%; width: 100%; height: 55%; z-index: -1; background-color: rgb(9, 104, 223); "></div> |
83 | <div style="position: absolute; left: 0px; top: 48%; width: 100%; height: 53%; z-index: -1; background-color: rgb(8, 103, 222); "></div> |
84 | <div style="position: absolute; left: 0px; top: 50%; width: 100%; height: 51%; z-index: -1; background-color: rgb(8, 102, 221); "></div> |
85 | <div style="position: absolute; left: 0px; top: 52%; width: 100%; height: 49%; z-index: -1; background-color: rgb(8, 100, 219); "></div> |
86 | <div style="position: absolute; left: 0px; top: 54%; width: 100%; height: 47%; z-index: -1; background-color: rgb(7, 99, 218); "></div> |
87 | <div style="position: absolute; left: 0px; top: 56%; width: 100%; height: 45%; z-index: -1; background-color: rgb(7, 97, 216); "></div> |
88 | <div style="position: absolute; left: 0px; top: 58%; width: 100%; height: 43%; z-index: -1; background-color: rgb(7, 96, 215); "></div> |
89 | <div style="position: absolute; left: 0px; top: 60%; width: 100%; height: 41%; z-index: -1; background-color: rgb(6, 95, 214); "></div> |
90 | <div style="position: absolute; left: 0px; top: 62%; width: 100%; height: 39%; z-index: -1; background-color: rgb(6, 93, 212); "></div> |
91 | <div style="position: absolute; left: 0px; top: 64%; width: 100%; height: 37%; z-index: -1; background-color: rgb(6, 92, 211); "></div> |
92 | <div style="position: absolute; left: 0px; top: 66%; width: 100%; height: 35%; z-index: -1; background-color: rgb(5, 91, 210); "></div> |
93 | <div style="position: absolute; left: 0px; top: 68%; width: 100%; height: 33%; z-index: -1; background-color: rgb(5, 89, 208); "></div> |
94 | <div style="position: absolute; left: 0px; top: 70%; width: 100%; height: 31%; z-index: -1; background-color: rgb(5, 88, 207); "></div> |
95 | <div style="position: absolute; left: 0px; top: 72%; width: 100%; height: 29%; z-index: -1; background-color: rgb(4, 87, 206); "></div> |
96 | <div style="position: absolute; left: 0px; top: 74%; width: 100%; height: 27%; z-index: -1; background-color: rgb(4, 85, 204); "></div> |
97 | <div style="position: absolute; left: 0px; top: 76%; width: 100%; height: 25%; z-index: -1; background-color: rgb(4, 84, 203); "></div> |
98 | <div style="position: absolute; left: 0px; top: 78%; width: 100%; height: 23%; z-index: -1; background-color: rgb(3, 82, 201); "></div> |
99 | <div style="position: absolute; left: 0px; top: 80%; width: 100%; height: 21%; z-index: -1; background-color: rgb(3, 81, 200); "></div> |
100 | <div style="position: absolute; left: 0px; top: 82%; width: 100%; height: 19%; z-index: -1; background-color: rgb(3, 80, 199); "></div> |
101 | <div style="position: absolute; left: 0px; top: 84%; width: 100%; height: 17%; z-index: -1; background-color: rgb(2, 78, 197); "></div> |
102 | <div style="position: absolute; left: 0px; top: 86%; width: 100%; height: 15%; z-index: -1; background-color: rgb(2, 77, 196); "></div> |
103 | <div style="position: absolute; left: 0px; top: 88%; width: 100%; height: 13%; z-index: -1; background-color: rgb(2, 76, 195); "></div> |
104 | <div style="position: absolute; left: 0px; top: 90%; width: 100%; height: 11%; z-index: -1; background-color: rgb(1, 74, 193); "></div> |
105 | <div style="position: absolute; left: 0px; top: 92%; width: 100%; height: 9%; z-index: -1; background-color: rgb(1, 73, 192); "></div> |
106 | <div style="position: absolute; left: 0px; top: 94%; width: 100%; height: 7%; z-index: -1; background-color: rgb(1, 72, 191); "></div> |
107 | <div style="position: absolute; left: 0px; top: 96%; width: 100%; height: 5%; z-index: -1; background-color: rgb(0, 70, 189); "></div> |
108 | <div style="position: absolute; left: 0px; top: 98%; width: 100%; height: 3%; z-index: -1; background-color: rgb(0, 69, 188); "></div> |
109 | <div style="position: absolute; left: 0px; top: 100%; width: 100%; height: 1%; z-index: -1; background-color: rgb(0, 68, 187); "></div> |
110 | </div> |
111 | |
112 | <div class="body_content"><br /> |
113 | <table class="file_summary"><tr><td class="h">Filename</td><td align="left"><a href="file:///Users/edenc/perl5/lib/perl5/Scope/Guard.pm">/Users/edenc/perl5/lib/perl5/Scope/Guard.pm</a></td></tr> |
114 | <tr><td class="h">Statements</td><td align="left">Executed 36 statements in 570µs</td></tr></table> |
115 | |
116 | <table id="subs_table" border="1" cellpadding="0" class="tablesorter"> |
117 | <caption>Subroutines</caption> |
118 | <thead> |
119 | <tr> |
120 | <th>Calls</th> |
121 | <th><span title="Number of Places sub is called from">P</span></th> |
122 | <th><span title="Number of Files sub is called from">F</span></th> |
123 | <th>Exclusive<br />Time</th> |
124 | <th>Inclusive<br />Time</th> |
125 | <th>Subroutine</th> |
126 | </tr> |
127 | </thead> |
128 | <tbody> |
129 | <tr><td class="c0">3</td><td class="c1">2</td><td class="c1">2</td><td class="c1"><span title="0.0%">30µs</span></td><td class="c3"><span title="0.0%">32µs</span></td><td class="sub_name"><span style="display: none;">Scope::Guard::::new</span>Scope::Guard::<a href="Scope-Guard-pm-1527-block.html#13">new</a></span></td></tr> |
130 | <tr><td class="c3">1</td><td class="c3">1</td><td class="c3">1</td><td class="c1"><span title="0.0%">25µs</span></td><td class="c3"><span title="0.0%">32µs</span></td><td class="sub_name"><span style="display: none;">Scope::Guard::::BEGIN@3</span>Scope::Guard::<a href="Scope-Guard-pm-1527-block.html#3">BEGIN@3</a></span></td></tr> |
131 | <tr><td class="c1">2</td><td class="c1">2</td><td class="c1">2</td><td class="c3"><span title="0.0%">15µs</span></td><td class="c0"><span title="0.0%">280µs</span></td><td class="sub_name"><span style="display: none;">Scope::Guard::::DESTROY</span>Scope::Guard::<a href="Scope-Guard-pm-1527-block.html#36">DESTROY</a></span></td></tr> |
132 | <tr><td class="c3">1</td><td class="c3">1</td><td class="c3">1</td><td class="c3"><span title="0.0%">13µs</span></td><td class="c1"><span title="0.0%">69µs</span></td><td class="sub_name"><span style="display: none;">Scope::Guard::::BEGIN@6</span>Scope::Guard::<a href="Scope-Guard-pm-1527-block.html#6">BEGIN@6</a></span></td></tr> |
133 | <tr><td class="c3">1</td><td class="c3">1</td><td class="c3">1</td><td class="c3"><span title="0.0%">12µs</span></td><td class="c3"><span title="0.0%">22µs</span></td><td class="sub_name"><span style="display: none;">Scope::Guard::::BEGIN@4</span>Scope::Guard::<a href="Scope-Guard-pm-1527-block.html#4">BEGIN@4</a></span></td></tr> |
134 | <tr><td class="c3">1</td><td class="c3">1</td><td class="c3">1</td><td class="c3"><span title="0.0%">6µs</span></td><td class="c3"><span title="0.0%">6µs</span></td><td class="sub_name"><span style="display: none;">Scope::Guard::::BEGIN@7</span>Scope::Guard::<a href="Scope-Guard-pm-1527-block.html#7">BEGIN@7</a></span></td></tr> |
135 | <tr><td class="c3">0</td><td class="c3">0</td><td class="c3">0</td><td class="c3"><span title="0.0%">0s</span></td><td class="c3"><span title="0.0%">0s</span></td><td class="sub_name"><span style="display: none;">Scope::Guard::::dismiss</span>Scope::Guard::<a href="Scope-Guard-pm-1527-block.html#26">dismiss</a></span></td></tr> |
136 | <tr><td class="c3">0</td><td class="c3">0</td><td class="c3">0</td><td class="c3"><span title="0.0%">0s</span></td><td class="c3"><span title="0.0%">0s</span></td><td class="sub_name"><span style="display: none;">Scope::Guard::::guard</span>Scope::Guard::<a href="Scope-Guard-pm-1527-block.html#33">guard</a></span></td></tr> |
137 | <tr><td class="c3">0</td><td class="c3">0</td><td class="c3">0</td><td class="c3"><span title="0.0%">0s</span></td><td class="c3"><span title="0.0%">0s</span></td><td class="sub_name"><span style="display: none;">Scope::Guard::::scope_guard</span>Scope::Guard::<a href="Scope-Guard-pm-1527-block.html#34">scope_guard</a></span></td></tr> |
138 | </tbody></table> |
139 | Call graph for these subroutines as a |
140 | <a href="http://en.wikipedia.org/wiki/Graphviz">Graphviz</a> |
141 | <a href="Users-edenc-perl5-lib-perl5-Scope-Guard-pm.dot">dot language file</a>. |
142 | |
143 | <table border="1" cellpadding="0"> |
144 | <thead> |
145 | <tr><th>Line</th> |
146 | <th><span title="Number of statements executed">State<br />ments</span></th> |
147 | <th><span title="Time spend executing statements on the line, |
148 | excluding time spent executing statements in any called subroutines">Time<br />on line</span></th> |
149 | <th><span title="Number of subroutines calls">Calls</span></th> |
150 | <th><span title="Time spent in subroutines called (inclusive)">Time<br />in subs</span></th> |
151 | <th class="left_indent_header">Code</th> |
152 | </tr> |
153 | |
154 | </thead> |
155 | <tbody> |
156 | <tr><td class="h"><a name="1"></a>1</td><td></td><td></td><td></td><td></td><td class="s">package Scope::Guard;</td></tr> |
157 | <tr><td class="h"><a name="2"></a>2</td><td></td><td></td><td></td><td></td><td class="s"></td></tr> |
158 | <tr><td class="h"><a name="3"></a>3</td><td class="c3">2</td><td class="c3"><span title="Avg 21µs">41µs</span></td><td class="c3">2</td><td class="c3">39µs</td><td class="s"><div class="calls"><div class="calls_in"># spent 32µs (25+7) within Scope::Guard::BEGIN@3 which was called: |
159 | # once (25µs+7µs) by KiokuDB::Collapser::BEGIN@8 at <a href="Scope-Guard-pm-1527-block.html#3">line 3</a></div></div>use strict;<div class="calls"><div class="calls_out"># spent 32µs making 1 call to <a href="Scope-Guard-pm-1527-block.html#3">Scope::Guard::BEGIN@3</a> |
160 | # spent 7µs making 1 call to <a href="strict-pm-3-block.html#34">strict::import</a></div></div></td></tr> |
161 | <tr><td class="h"><a name="4"></a>4</td><td class="c3">2</td><td class="c3"><span title="Avg 21µs">42µs</span></td><td class="c3">2</td><td class="c3">32µs</td><td class="s"><div class="calls"><div class="calls_in"># spent 22µs (12+10) within Scope::Guard::BEGIN@4 which was called: |
162 | # once (12µs+10µs) by KiokuDB::Collapser::BEGIN@8 at <a href="Scope-Guard-pm-1527-block.html#4">line 4</a></div></div>use warnings;<div class="calls"><div class="calls_out"># spent 22µs making 1 call to <a href="Scope-Guard-pm-1527-block.html#4">Scope::Guard::BEGIN@4</a> |
163 | # spent 10µs making 1 call to <a href="warnings-pm-2-block.html#386">warnings::import</a></div></div></td></tr> |
164 | <tr><td class="h"><a name="5"></a>5</td><td></td><td></td><td></td><td></td><td class="s"></td></tr> |
165 | <tr><td class="h"><a name="6"></a>6</td><td class="c3">2</td><td class="c3"><span title="Avg 19µs">39µs</span></td><td class="c3">2</td><td class="c0">124µs</td><td class="s"><div class="calls"><div class="calls_in"># spent 69µs (13+56) within Scope::Guard::BEGIN@6 which was called: |
166 | # once (13µs+56µs) by KiokuDB::Collapser::BEGIN@8 at <a href="Scope-Guard-pm-1527-block.html#6">line 6</a></div></div>use Carp qw(confess);<div class="calls"><div class="calls_out"># spent 69µs making 1 call to <a href="Scope-Guard-pm-1527-block.html#6">Scope::Guard::BEGIN@6</a> |
167 | # spent 55µs making 1 call to <a href="Exporter-pm-8-block.html#28">Exporter::import</a></div></div></td></tr> |
168 | <tr><td class="h"><a name="7"></a>7</td><td class="c3">2</td><td class="c0"><span title="Avg 186µs">373µs</span></td><td class="c3">1</td><td class="c3">6µs</td><td class="s"><div class="calls"><div class="calls_in"># spent 6µs within Scope::Guard::BEGIN@7 which was called: |
169 | # once (6µs+0s) by KiokuDB::Collapser::BEGIN@8 at <a href="Scope-Guard-pm-1527-block.html#7">line 7</a></div></div>use Exporter ();<div class="calls"><div class="calls_out"># spent 6µs making 1 call to <a href="Scope-Guard-pm-1527-block.html#7">Scope::Guard::BEGIN@7</a></div></div></td></tr> |
170 | <tr><td class="h"><a name="8"></a>8</td><td></td><td></td><td></td><td></td><td class="s"></td></tr> |
171 | <tr><td class="h"><a name="9"></a>9</td><td class="c3">1</td><td class="c3"><span title="Avg 13µs">13µs</span></td><td></td><td></td><td class="s">our @ISA = qw(Exporter);</td></tr> |
172 | <tr><td class="h"><a name="10"></a>10</td><td class="c3">1</td><td class="c3"><span title="Avg 1µs">1µs</span></td><td></td><td></td><td class="s">our @EXPORT_OK = qw(guard scope_guard);</td></tr> |
173 | <tr><td class="h"><a name="11"></a>11</td><td class="c3">1</td><td class="c3"><span title="Avg 600ns">600ns</span></td><td></td><td></td><td class="s">our $VERSION = '0.20';</td></tr> |
174 | <tr><td class="h"><a name="12"></a>12</td><td></td><td></td><td></td><td></td><td class="s"></td></tr> |
175 | <tr><td class="h"><a name="13"></a>13</td><td></td><td></td><td></td><td></td><td class="s"><div class="calls"><div class="calls_in"># spent 32µs (30+2) within Scope::Guard::new which was called 3 times, avg 11µs/call: |
176 | # 2 times (21µs+2µs) by Catalyst::Model::KiokuDB::setup_scope_guard at <a href="Catalyst-Model-KiokuDB-pm-2055-block.html#198">line 198 of Catalyst/Model/KiokuDB.pm</a>, avg 11µs/call |
177 | # once (9µs+700ns) by KiokuDB::Collapser::collapse at <a href="KiokuDB-Collapser-pm-1524-block.html#84">line 84 of KiokuDB/Collapser.pm</a></div></div>sub new {</td></tr> |
178 | <tr><td class="h"><a name="14"></a>14</td><td class="c0">18</td><td class="c3"><span title="Avg 2µs">35µs</span></td><td></td><td></td><td class="s"> confess "Can't create a Scope::Guard in void context" unless (defined wantarray);</td></tr> |
179 | <tr><td class="h"><a name="15"></a>15</td><td></td><td></td><td></td><td></td><td class="s"></td></tr> |
180 | <tr><td class="h"><a name="16"></a>16</td><td></td><td></td><td></td><td></td><td class="s"> my $class = shift;</td></tr> |
181 | <tr><td class="h"><a name="17"></a>17</td><td></td><td></td><td></td><td></td><td class="s"> my $handler = shift() || die 'Scope::Guard::new: no handler supplied';</td></tr> |
182 | <tr><td class="h"><a name="18"></a>18</td><td></td><td></td><td></td><td></td><td class="s"> my $ref = ref $handler || '';</td></tr> |
183 | <tr><td class="h"><a name="19"></a>19</td><td></td><td></td><td></td><td></td><td class="s"></td></tr> |
184 | <tr><td class="h"><a name="20"></a>20</td><td></td><td></td><td class="c1">3</td><td class="c3">2µs</td><td class="s"> die "Scope::Guard::new: invalid handler - expected CODE ref, got: '$ref'"<div class="calls"><div class="calls_out"> # spent 2µs making 3 calls to <a href="UNIVERSAL-pm-738-block.html#UNIVERSAL__isa">UNIVERSAL::isa</a>, avg 733ns/call</div></div></td></tr> |
185 | <tr><td class="h"><a name="21"></a>21</td><td></td><td></td><td></td><td></td><td class="s"> unless (UNIVERSAL::isa($handler, 'CODE'));</td></tr> |
186 | <tr><td class="h"><a name="22"></a>22</td><td></td><td></td><td></td><td></td><td class="s"></td></tr> |
187 | <tr><td class="h"><a name="23"></a>23</td><td></td><td></td><td></td><td></td><td class="s"> bless [ 0, $handler ], ref $class || $class;</td></tr> |
188 | <tr><td class="h"><a name="24"></a>24</td><td></td><td></td><td></td><td></td><td class="s">}</td></tr> |
189 | <tr><td class="h"><a name="25"></a>25</td><td></td><td></td><td></td><td></td><td class="s"></td></tr> |
190 | <tr><td class="h"><a name="26"></a>26</td><td></td><td></td><td></td><td></td><td class="s">sub dismiss {</td></tr> |
191 | <tr><td class="h"><a name="27"></a>27</td><td></td><td></td><td></td><td></td><td class="s"> my $self = shift;</td></tr> |
192 | <tr><td class="h"><a name="28"></a>28</td><td></td><td></td><td></td><td></td><td class="s"> my $dismiss = @_ ? shift : 1;</td></tr> |
193 | <tr><td class="h"><a name="29"></a>29</td><td></td><td></td><td></td><td></td><td class="s"></td></tr> |
194 | <tr><td class="h"><a name="30"></a>30</td><td></td><td></td><td></td><td></td><td class="s"> $self->[0] = $dismiss;</td></tr> |
195 | <tr><td class="h"><a name="31"></a>31</td><td></td><td></td><td></td><td></td><td class="s">}</td></tr> |
196 | <tr><td class="h"><a name="32"></a>32</td><td></td><td></td><td></td><td></td><td class="s"></td></tr> |
197 | <tr><td class="h"><a name="33"></a>33</td><td></td><td></td><td></td><td></td><td class="s">sub guard(&) { __PACKAGE__->new(shift) }</td></tr> |
198 | <tr><td class="h"><a name="34"></a>34</td><td></td><td></td><td></td><td></td><td class="s">sub scope_guard($) { __PACKAGE__->new(shift) }</td></tr> |
199 | <tr><td class="h"><a name="35"></a>35</td><td></td><td></td><td></td><td></td><td class="s"></td></tr> |
200 | <tr><td class="h"><a name="36"></a>36</td><td></td><td></td><td></td><td></td><td class="s"><div class="calls"><div class="calls_in"># spent 280µs (15+266) within Scope::Guard::DESTROY which was called 2 times, avg 140µs/call: |
201 | # once (6µs+254µs) by Try::Tiny::try at <a href="Try-Tiny-pm-76-block.html#79">line 79 of Try/Tiny.pm</a> |
202 | # once (8µs+11µs) by KiokuDB::Collapser::collapse at <a href="KiokuDB-pm-1519-block.html#571">line 571 of KiokuDB.pm</a></div></div>sub DESTROY {</td></tr> |
203 | <tr><td class="h"><a name="37"></a>37</td><td class="c0">6</td><td class="c3"><span title="Avg 2µs">14µs</span></td><td></td><td></td><td class="s"> my $self = shift;</td></tr> |
204 | <tr><td class="h"><a name="38"></a>38</td><td></td><td></td><td></td><td></td><td class="s"> my ($dismiss, $handler) = @$self;</td></tr> |
205 | <tr><td class="h"><a name="39"></a>39</td><td></td><td></td><td></td><td></td><td class="s"></td></tr> |
206 | <tr><td class="h"><a name="40"></a>40</td><td></td><td></td><td class="c3">2</td><td class="c0">266µs</td><td class="s"> $handler->() unless ($dismiss);<div class="calls"><div class="calls_out"> # spent 254µs making 1 call to <a href="Catalyst-Model-KiokuDB-pm-2055-block.html#157">Catalyst::Model::KiokuDB::__ANON__[Catalyst/Model/KiokuDB.pm:198]</a> |
207 | # spent 11µs making 1 call to <a href="KiokuDB-Collapser-pm-1524-block.html#84">KiokuDB::Collapser::__ANON__[KiokuDB/Collapser.pm:84]</a></div></div></td></tr> |
208 | <tr><td class="h"><a name="41"></a>41</td><td></td><td></td><td></td><td></td><td class="s">}</td></tr> |
209 | <tr><td class="h"><a name="42"></a>42</td><td></td><td></td><td></td><td></td><td class="s"></td></tr> |
210 | <tr><td class="h"><a name="43"></a>43</td><td class="c3">1</td><td class="c3"><span title="Avg 11µs">11µs</span></td><td></td><td></td><td class="s">1;</td></tr> |
211 | <tr><td class="h"><a name="44"></a>44</td><td></td><td></td><td></td><td></td><td class="s"></td></tr> |
212 | <tr><td class="h"><a name="45"></a>45</td><td></td><td></td><td></td><td></td><td class="s">__END__</td></tr> |
213 | </tbody></table></div> |
214 | |
215 | <script type="text/javascript"> $(document).ready(function() { |
216 | |
217 | $("#subs_table").tablesorter({ |
218 | sortList: [[3,1]], |
219 | headers: { |
220 | 3: { sorter: 'fmt_time' }, |
221 | 4: { sorter: 'fmt_time' } |
222 | } |
223 | }); |
224 | |
225 | } ); </script> |
226 | |
227 | <div class="footer">Report produced by the |
228 | <a href="http://search.cpan.org/dist/Devel-NYTProf/">NYTProf 4.06</a> |
229 | Perl profiler, developed by |
230 | <a href="http://www.linkedin.com/in/timbunce">Tim Bunce</a> and |
231 | <a href="http://code.nytimes.com">Adam Kaplan</a>. |
232 | </div> |
233 | <br /><br /><br /><br /><br /><br /><br /><br /><br /><br /> |
234 | </body></html> |