This is a static copy of a profile report

Home

hggetbehavior>localPeek (21675 calls, 4.886 sec)
Generated 05-Aug-2011 13:02:34 using cpu time.
subfunction in file /usr/local/MATLAB/R2011a/toolbox/matlab/graphics/hggetbehavior.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
hggetbehaviorfunction21605
hggetbehavior>localGetsubfunction70
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
121
if isprop(handle(h),'Behavior'...
216753.771 s77.2%
122
bb = get(h,'Behavior');
216750.448 s9.2%
126
if isfield(bb,behavior_name)
216750.251 s5.1%
120
ret_h = handle([]);
216750.197 s4.0%
All other lines  0.219 s4.5%
Totals  4.886 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
ispropfunction216753.279 s67.1%
Self time (built-ins, overhead, etc.)  1.607 s32.9%
Totals  4.886 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
[ Show coverage for parent directory ]
Total lines in function12
Non-code lines (comments, blank lines)3
Code lines (lines that can run)9
Code lines that did run4
Code lines that did not run5
Coverage (did run/can run)44.44 %
Function listing
   time   calls  line
117 function [ret_h] = localPeek(h,behavior_name)
118 % Loop through available behavior objects
119
0.20 21675 120 ret_h = handle([]);
3.77 21675 121 if isprop(handle(h),'Behavior')
0.45 21675 122 bb = get(h,'Behavior');
123 else
124 return
125 end
0.25 21675 126 if isfield(bb,behavior_name)
127 ret_h = bb(1).(behavior_name);
128 end