This is a static copy of a profile report

Home

scribe.legend.methods>create_plotchild_listeners (2 calls, 0.021 sec)
Generated 18-Mar-2011 23:31:56 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
scribe.legend.methodsM-function2
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
1273
lis.markersize = handle.listen...
70.010 s50.0%
1272
lis.marker = handle.listener(c...
70.010 s50.0%
1284
set(h,'ScribePLegendListeners'...
20 s0%
1283
end
70 s0%
1282
newlis{end+1} = lis; %#ok<A...
70 s0%
All other lines  0 s0%
Totals  0.021 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
opaque.doubleM-function70 s0%
scribe.legend.methods>localGetTokenItemM-subfunction70 s0%
ispropM-function90 s0%
Self time (built-ins, overhead, etc.)  0.021 s100.0%
Totals  0.021 s100% 
M-Lint results
Line numberMessage
Coverage results
[ Show coverage for parent directory ]
Total lines in function40
Non-code lines (comments, blank lines)4
Code lines (lines that can run)36
Code lines that did run27
Code lines that did not run9
Coverage (did run/can run)75.00 %
Function listing
   time   calls  line
1245 function create_plotchild_listeners(h,hch,ch,forceDeleteListener) %#ok
1246
2 1247 if ~isprop(h,'ScribePLegendListeners')
2 1248 l = schema.prop(h,'ScribePLegendListeners','MATLAB array');
2 1249 l.AccessFlags.Serialize = 'off';
2 1250 l.Visible = 'off';
2 1251 newlis = {};
1252 else
1253 newlis = get(h,'ScribePLegendListeners');
1254 end
2 1255 for i=1:length(hch)
7 1256 currHandle = hch(i);
1257 % Make sure we attach listeners to objects that actually determine the
1258 % tokens.
7 1259 currHandle = handle(localGetTokenItem(currHandle));
7 1260 cls = classhandle(currHandle);
7 1261 currObj = double(currHandle);
7 1262 type = get(currObj,'type');
7 1263 switch type
7 1264 case 'line'
7 1265 lis.color = handle.listener(currObj, cls.findprop('Color'), 'PropertyPostSet', {@PlotChildLinePropChanged,h,currHandle});
1266 case {'patch','surface'}
1267 lis.facecolor = handle.listener(currObj, cls.findprop('FaceColor'), 'PropertyPostSet', {@PlotChildPatchPropChanged,h,currHandle});
1268 lis.edgecolor = handle.listener(currObj, cls.findprop('EdgeColor'), 'PropertyPostSet', {@PlotChildPatchPropChanged,h,currHandle});
1269 end
7 1270 lis.linestyle = handle.listener(currObj, cls.findprop('LineStyle'), 'PropertyPostSet', {@PlotChildAllLinePropChanged,h,currHandle});
7 1271 lis.linewidth = handle.listener(currObj, cls.findprop('LineWidth'), 'PropertyPostSet', {@PlotChildAllLinePropChanged,h,currHandle});
0.01 7 1272 lis.marker = handle.listener(currObj, cls.findprop('Marker'), 'PropertyPostSet', {@PlotChildMarkerPropChanged,h,currHandle});
0.01 7 1273 lis.markersize = handle.listener(currObj, cls.findprop('MarkerSize'), 'PropertyPostSet', {@PlotChildMarkerPropChanged,h,currHandle});
7 1274 lis.markeredgecolor = handle.listener(currObj, cls.findprop('MarkerEdgeColor'), 'PropertyPostSet', {@PlotChildMarkerPropChanged,h,currHandle});
7 1275 lis.markerfacecolor = handle.listener(currObj, cls.findprop('MarkerFaceColor'), 'PropertyPostSet', {@PlotChildMarkerPropChanged,h,currHandle});
7 1276 if isprop(currHandle,'DisplayName')
7 1277 lis.dispname = handle.listener(currObj, cls.findprop('DisplayName'),'PropertyPostSet',{@PlotChildDispNameChanged,h,currHandle});
7 1278 end
7 1279 if isequal(h.PlotChildListen,'on')
1280 lis.deleted = handle.listener(currObj, 'ObjectBeingDestroyed', {@PlotChildDeleted,h,currHandle});
1281 end
7 1282 newlis{end+1} = lis; %#ok<AGROW>
7 1283 end
2 1284 set(h,'ScribePLegendListeners',newlis);

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