This is a static copy of a profile report

Home

scribe.legend.methods>localGetTokenItem (110 calls, 0.000 sec)
Generated 05-Aug-2011 13:03:02 using cpu time.
subfunction in file /usr/local/MATLAB/R2011a/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_itemssubfunction55
...nd.methods>create_plotchild_listenerssubfunction55
Lines where the most time was spent
No measurable time spent in this function

Line NumberCodeCallsTotal Time% TimeTime Plot
1224
return
1100 s0%
1223
tokObj = hObj;
1100 s0%
1222
if ~strcmpi(get(hObj,'Type'),'...
1100 s0%
All other lines  0 s0%
Totals  0 s0% 
Children (called functions)
No children
Code Analyzer 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
1219 function tokObj = localGetTokenItem(hObj)
1220 % Given an HG object, return the item that will create its token:
1221
110 1222 if ~strcmpi(get(hObj,'Type'),'hggroup') && ~strcmpi(get(hObj,'Type'),'hgtransform')
110 1223 tokObj = hObj;
110 1224 return
1225 end
1226
1227 % If the hggroup has legendinfo appdata, this will dominate:
1228 if isappdata(double(hObj),'LegendLegendInfo')
1229 tokObj = hObj;
1230 return
1231 end
1232
1233 % If the hggroup has no handle-visible children, or children whose
1234 % "IconDisplayStyle" is set to "off", return the group:
1235 hChil = get(hObj,'Children');
1236 % Filter out the legendable children:
1237 legKids = arrayfun(@(x)(graph2dhelper('islegendable',x)),hChil);
1238 hChil(~legKids) = [];
1239 hChil = graph2dhelper('expandLegendChildren',hChil);
1240 if isempty(hChil)
1241 tokObj = hObj;
1242 return
1243 end
1244
1245 % Otherwise, recurse and get the token of the first child:
1246 tokObj = localGetTokenItem(hChil(1));

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