This is a static copy of a profile report

Home

legend>find_legend (2 calls, 0.000 sec)
Generated 18-Mar-2011 23:31:45 using cpu time.
M-subfunction in file /Applications/MATLAB_R2010a.app/toolbox/matlab/scribe/legend.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
legend>make_legendM-subfunction2
Lines where the most time was spent
No measurable time spent in this function

Line NumberCodeCallsTotal Time% TimeTime Plot
415
return;
20 s0%
414
if ~isappdata(double(ha),'Lege...
20 s0%
411
if isempty(ha) || ~ishandle(ha...
20 s0%
410
leg = [];
20 s0%
All other lines  0 s0%
Totals  0 s0% 
Children (called functions)
No children
M-Lint results
Line numberMessage
Coverage results
[ Show coverage for parent directory ]
Total lines in function18
Non-code lines (comments, blank lines)6
Code lines (lines that can run)12
Code lines that did run4
Code lines that did not run8
Coverage (did run/can run)33.33 %
Function listing
   time   calls  line
405 function leg = find_legend(ha)
406
407 % Using the "LegendPeerHandle" appdata, we will find the legend peered to
408 % the current axes. This handle may be invalid due to copy/paste effects.
409 % In this case, the appdata will be reset.
2 410 leg = [];
2 411 if isempty(ha) || ~ishandle(ha)
412 return;
413 end
2 414 if ~isappdata(double(ha),'LegendPeerHandle')
2 415 return;
416 end
417 leg = getappdata(double(ha),'LegendPeerHandle');
418 if ~ishandle(leg) || ~isequal(get(leg,'Axes'),handle(ha))
419 % Reset the "LegendPeerHandle" appdata
420 rmappdata(double(ha),'LegendPeerHandle');
421 leg = [];
422 end

Other subfunctions in this file are not included in this listing.