This is a static copy of a profile reportHome
graphics/private/setup (40 calls, 0.011 sec)
Generated 05-Aug-2011 13:03:34 using cpu time.
function in file /usr/local/MATLAB/R2011a/toolbox/matlab/graphics/private/setup.m
Copy to new window for comparing multiple runs
Parents (calling functions)
Function Name | Function Type | Calls |
print | function | 40 |
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
17 | if strcmp('setup', pj.Driver) | 40 | 0.011 s | 100.0% |  |
24 | end | 40 | 0 s | 0% |  |
23 | result = 0; | 40 | 0 s | 0% |  |
22 | else | 40 | 0 s | 0% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 0.011 s | 100% | |
Children (called functions)
No childrenCode Analyzer results
No Code Analyzer messages.Coverage results
[ Show coverage for parent directory ]
Total lines in function | 24 |
Non-code lines (comments, blank lines) | 16 |
Code lines (lines that can run) | 8 |
Code lines that did run | 4 |
Code lines that did not run | 4 |
Coverage (did run/can run) | 50.00 % |
Function listing
time calls line
1 function result = setup( pj )
2 %SETUP Open the printer setup dialog.
3 % If the device driver in the PrintJob object is setup, opens the window
4 % system specific dialog for setting options for printing. Normally this
5 % dialog will affect all future printing using the window system's driver
6 % (i.e. Windows drivers), not just the current Figure or model.
7 %
8 % Ex:
9 % err_code = SETUP( pj ); %returns 1 if successfuly opened setup
10 % dialog, 0 if not.
11 %
12 % See also PRINT.
13
14 % Copyright 1984-2008 The MathWorks, Inc.
15 % $Revision: 1.4.4.2 $ $Date: 2008/12/15 08:53:02 $
16
0.01 40 17 if strcmp('setup', pj.Driver)
18 result = 1;
19 if (useOriginalHGPrinting())
20 hardcopy(pj.Handles{1}(1), '-dsetup');
21 end
40 22 else
40 23 result = 0;
40 24 end