This is a static copy of a profile reportHome
graphics/private/render>LocalPrintJob2Arguments (40 calls, 0.022 sec)
Generated 05-Aug-2011 13:00:41 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)
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
324 | inputargs{end+1} = ['-r' num2s... | 40 | 0.011 s | 50.0% |  |
318 | inputargs{3} = LocalGetImageDr... | 40 | 0.011 s | 50.0% |  |
351 | if ispc | 40 | 0 s | 0% |  |
342 | if ispc && strncmp(pj.... | 40 | 0 s | 0% |  |
338 | if pj.Verbose == 1 | 40 | 0 s | 0% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 0.022 s | 100% | |
Children (called functions)
Code Analyzer results
Coverage results
[ Show coverage for parent directory ]
Total lines in function | 49 |
Non-code lines (comments, blank lines) | 12 |
Code lines (lines that can run) | 37 |
Code lines that did run | 14 |
Code lines that did not run | 23 |
Coverage (did run/can run) | 37.84 % |
Function listing
time calls line
307 function inputargs = LocalPrintJob2Arguments( pj, h )
308 %
309 % Make Cell-array of input arguments for old hardcopy from PrintJob.
310 %
311
40 312 inputargs{1} = h;
40 313 inputargs{2} = pj.FileName;
314
315 %If asking internal driver to create a zbuffer image to call
316 %IMWRITE with, set driver argument accordingly.
40 317 if strcmp( pj.DriverClass, 'IM')
0.01 40 318 inputargs{3} = LocalGetImageDriver(h, pj.Renderer);
319 else
320 inputargs{3} = [ '-d' pj.Driver];
321 end
322
40 323 if pj.DPI ~= -1
0.01 40 324 inputargs{end+1} = ['-r' num2str(pj.DPI)];
40 325 end
40 326 if ~pj.PostScriptTightBBox
327 inputargs{end+1} = '-loose';
328 end
40 329 if pj.PostScriptCMYK
330 inputargs{end+1} = '-cmyk';
331 end
40 332 if pj.PostScriptAppend
333 inputargs{end+1} = '-append';
334 end
40 335 if ~pj.PostScriptLatin1
336 inputargs{end+1} = '-adobecset';
337 end
40 338 if pj.Verbose == 1
339 inputargs{end+1} = '-v';
340 end
341
40 342 if ispc && strncmp(pj.Driver, 'win', 3)
343 if isfigure(h) && isempty(getprinttemplate(h))
344 if ~pj.DriverColorSet
345 inputargs{end+1} = '-wcolor';
346 end
347 end
348 end
349
350 % add _P option to hardcopy for Windows only
40 351 if ispc
352 if strcmp( pj.PrinterName, '' )==0 % if printer is not empty send it on windows
353 inputargs{end+1} = [ '-P' pj.PrinterName ];
354 end
355 end
Other subfunctions in this file are not included in this listing.