This is a static copy of a profile report

Home

scribe.legend.methods>localGetTokenItem (14 calls, 0.000 sec)
Generated 18-Mar-2011 23:33:15 using cpu time.
M-subfunction in file /Applications/MATLAB_R2010a.app/toolbox/matlab/scribe/@scribe/@legend/methods.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
...be.legend.methods>create_legend_itemsM-subfunction7
...nd.methods>create_plotchild_listenersM-subfunction7
Lines where the most time was spent
No measurable time spent in this function

Line NumberCodeCallsTotal Time% TimeTime Plot
1220
return
140 s0%
1219
tokObj = hObj;
140 s0%
1218
if ~strcmpi(get(hObj,'Type'),'...
140 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 function28
Non-code lines (comments, blank lines)11
Code lines (lines that can run)17
Code lines that did run3
Code lines that did not run14
Coverage (did run/can run)17.65 %
Function listing
   time   calls  line
1215 function tokObj = localGetTokenItem(hObj)
1216 % Given an HG object, return the item that will create its token:
1217
14 1218 if ~strcmpi(get(hObj,'Type'),'hggroup') && ~strcmpi(get(hObj,'Type'),'hgtransform')
14 1219 tokObj = hObj;
14 1220 return
1221 end
1222
1223 % If the hggroup has legendinfo appdata, this will dominate:
1224 if isappdata(double(hObj),'LegendLegendInfo')
1225 tokObj = hObj;
1226 return
1227 end
1228
1229 % If the hggroup has no handle-visible children, or children whose
1230 % "IconDisplayStyle" is set to "off", return the group:
1231 hChil = get(hObj,'Children');
1232 % Filter out the legendable children:
1233 legKids = arrayfun(@(x)(graph2dhelper('islegendable',x)),hChil);
1234 hChil(~legKids) = [];
1235 hChil = graph2dhelper('expandLegendChildren',hChil);
1236 if isempty(hChil)
1237 tokObj = hObj;
1238 return
1239 end
1240
1241 % Otherwise, recurse and get the token of the first child:
1242 tokObj = localGetTokenItem(hChil(1));

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