This is a static copy of a profile report

Home

graphics/private/render>LocalGetSLSFObject (40 calls, 0.000 sec)
Generated 05-Aug-2011 13:03:39 using cpu time.
subfunction in file /usr/local/MATLAB/R2011a/toolbox/matlab/graphics/private/render.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
graphics/private/renderfunction40
Lines where the most time was spent
No measurable time spent in this function

Line NumberCodeCallsTotal Time% TimeTime Plot
1158
return;
400 s0%
1157
if ( ~inmem('-isloaded','simul...
400 s0%
1155
obj = 0;
400 s0%
1154
isSLSF = 0;
400 s0%
All other lines  0 s0%
Totals  0 s0% 
Children (called functions)
No children
Code Analyzer results
Line numberMessage
1183The value assigned to variable 'ex' might be unused.
Coverage results
[ Show coverage for parent directory ]
Total lines in function52
Non-code lines (comments, blank lines)18
Code lines (lines that can run)34
Code lines that did run4
Code lines that did not run30
Coverage (did run/can run)11.76 %
Function listing
   time   calls  line
1149 function [isSLSF, obj] = LocalGetSLSFObject( hdl, pj )
1150 %
1151 %
1152 %
1153
40 1154 isSLSF = 0;
40 1155 obj = 0;
1156
40 1157 if ( ~inmem('-isloaded','simulink') )
40 1158 return;
1159 end
1160
1161 % hdl will be vector when printing with frames. if that is the case we are
1162 % going through the old pipeline for frames. So just return
1163 if(~isscalar(hdl))
1164 return;
1165 end
1166
1167 if isslhandle( hdl )
1168 % for Simulink handles, the object is just the model's object
1169 obj = get_param(hdl,'Object');
1170 isSLSF = 1;
1171 elseif ishghandle( hdl )
1172 try
1173 % otherwise, we should be some sort of figure. If our tag
1174 % indicates that we come from Stateflow, extract the chart ID
1175 % and get the object
1176 tag = get(hdl,'Tag');
1177 if ( strcmp( tag, 'SF_PORTAL') )
1178 portalId = get(hdl,'UserData');
1179 objId = sf('get',portalId,'.viewObj');
1180 obj = idToHandle(sfroot,objId);
1181 isSLSF = 1;
1182 end
1183 catch ex
1184 end
1185 elseif ( length(hdl) > 1 )
1186 % special case - if we're dealing with print formats that were
1187 % figure only, pre-new-pipeline, and get a request to draw a model
1188 % to that format with print frames, just drop the print frame.
1189 if ( strcmpi(pj.DriverClass,'IM') )
1190 restrictedHdl = LocalDropPrintFrames(hdl);
1191 if ( length(restrictedHdl) == 1 )
1192 device = pj.Driver;
1193 if ( strcmp(device,'') )
1194 device = pj.DefaultDevice(3:end);
1195 end
1196 display(sprintf('Format "%s" can not be used with printframes', device ));
1197 [isSLSF, obj] = LocalGetSLSFObject( restrictedHdl, pj );
1198 end
1199 end
1200 end

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