This is a static copy of a profile report

Home

graphics.linkprop.removetarget (3 calls, 0.011 sec)
Generated 05-Aug-2011 13:03:27 using cpu time.
function in file /usr/local/MATLAB/R2011a/toolbox/matlab/graphics/@graphics/@linkprop/removetarget.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
...s.linkprop.linkprop>localRemoveHandlesubfunction3
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
15
ind = find(t==h);
30.011 s100.0%
24
end
30 s0%
23
feval(get(hLink,'UpdateFcn'),h...
30 s0%
20
set(hLink,'Targets',t); 
30 s0%
19
t(ind) = [];
30 s0%
All other lines  0 s0%
Totals  0.011 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
...inkprop.linkprop>localUpdateListenerssubfunction30 s0%
Self time (built-ins, overhead, etc.)  0.011 s100.0%
Totals  0.011 s100% 
Code Analyzer results
Line numberMessage
18Using ISEMPTY is usually faster than comparing LENGTH to 0.
Coverage results
[ Show coverage for parent directory ]
Total lines in function24
Non-code lines (comments, blank lines)13
Code lines (lines that can run)11
Code lines that did run9
Code lines that did not run2
Coverage (did run/can run)81.82 %
Function listing
   time   calls  line
1 function removetarget(hLink,h)
2 %REMOVETARGET Remove handle for linking
3
4 % Copyright 2003-2009 The MathWorks, Inc.
5
3 6 if ~isobject(h) && ~ishandle(h)
7 return;
8 end
9
3 10 h = handle(h);
11
3 12 t = get(hLink,'Targets');
13
14 % only update if in list
0.01 3 15 ind = find(t==h);
16
17 % remove element
3 18 if length(ind)>0
3 19 t(ind) = [];
3 20 set(hLink,'Targets',t);
21
22 % Update listeners, call to pseudo-private method
3 23 feval(get(hLink,'UpdateFcn'),hLink,false);
3 24 end

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