This is a static copy of a profile reportHome
printtables (80 calls, 0.164 sec)
Generated 05-Aug-2011 13:01:20 using cpu time.
function in file /usr/local/MATLAB/R2011a/toolbox/matlab/graphics/printtables.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 |
10 | pj = printjob(); | 40 | 0.066 s | 40.0% |  |
57 | if ~feature('ShowFigureWindows... | 40 | 0.055 s | 33.3% |  |
147 | [options, devices, extensions,... | 40 | 0.022 s | 13.3% |  |
17 | options = postProcessPrinttabl... | 40 | 0.022 s | 13.3% |  |
149 | end | 40 | 0 s | 0% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 0.164 s | 100% | |
Children (called functions)
Code Analyzer results
No Code Analyzer messages.Coverage results
[ Show coverage for parent directory ]
Total lines in function | 149 |
Non-code lines (comments, blank lines) | 126 |
Code lines (lines that can run) | 23 |
Code lines that did run | 20 |
Code lines that did not run | 3 |
Coverage (did run/can run) | 86.96 % |
Function listing
time calls line
1 function [ options, devices, extensions, classes, colorDevs, destinations, descriptions, clipsupport] = printtables( pj )
2 %PRINTTABLES Method to create cell arrays of data on drivers and options available.
3 % Tables are for use in input validation of arguments to PRINT command.
4 %
5 % See also PRINT
6
7 % Copyright 1984-2010 The MathWorks, Inc.
8
80 9 if ~nargin
0.07 40 10 pj = printjob();
40 11 end
12
80 13 options = localBuildOptions;
80 14 if nargout == 1
15 % passing in an empty device table since we're not going to use it in
16 % this context.
0.02 40 17 options = postProcessPrinttables(pj, [], options);
40 18 return; %shortcircuit - no need to do the rest
19 end
20
21 % List of all supported devices used for input validation.
22 %
23 %The first column contains the device name
24 %the second column contains the default filename extension,
25 %the third column indicates what type of output device is employed,
26 %the fourth indicates Monochrome or Color device, and
27 %the fifth is what do with output for that driver, P for print or X for export
28 %the sixth is a brief description of the device
29 %the seventh indicates whether or not the format supports copy to clipboard
30 %
40 31 device_table = [
32 %Postscript device options
33 {'ps' 'ps' 'PS' 'M' 'P' 'Postscript', 0}
34 {'psc' 'ps' 'PS' 'C' 'P' 'Postscript Color', 0}
35 {'ps2' 'ps' 'PS' 'M' 'P' 'Postscript Level 2', 0}
36 {'ps2c' 'ps' 'PS' 'C' 'P' ['Postscript' ...
37 ' Level 2 Color'], 0}
38 {'psc2' 'ps' 'PS' 'C' 'P' ['Postscript' ...
39 ' Level 2 Color'], 0}
40 {'eps' 'eps' 'EP' 'M' 'X' 'EPS file', 0}
41 {'epsc' 'eps' 'EP' 'C' 'X' 'EPS Color file', 0}
42 {'eps2' 'eps' 'EP' 'M' 'X' 'EPS Level 2 file', 0}
43 {'eps2c' 'eps' 'EP' 'C' 'X' '', 0}
44 {'epsc2' 'eps' 'EP' 'C' 'X' 'EPS Level 2 Color file', 0}
45
46 %Other built-in device options
47 {'hpgl' 'hgl' 'BI' 'C' 'P' 'HPGL', 0}
48 {'ill' 'ai' 'BI' 'C' 'X' 'Adobe Illustrator file', 0}
49 {'mfile' '' 'BI' 'C' 'X' '', 0}
50 {'tiff' 'tif' 'IM' 'C' 'X' 'TIFF image', 0}
51 {'tiffnocompression' 'tif' 'IM' 'C' 'X' 'TIFF no compression image', 0}
52 {'bmp' 'bmp' 'IM' 'C' 'X' '', 0}
53 {'hdf' 'hdf' 'IM' 'C' 'X' '', 0}
54 {'png' 'png' 'IM' 'C' 'X' 'Portable Network Graphics file', 0}
55 {'svg' 'svg' 'QT' 'C' 'X' 'Scalable Vector Graphics file', 0}
56 ];
0.05 40 57 if ~feature('ShowFigureWindows')
58 device_table = [ device_table ;
59 {'jpeg' 'jpg' 'GS' 'C' 'X' 'JPEG image', 0}
60 ];
40 61 else
40 62 device_table = [ device_table ;
63 {'jpeg' 'jpg' 'IM' 'C' 'X' 'JPEG image', 0}
64 ];
40 65 end
66
67 %GhostScript device options
40 68 device_table = [ device_table ;
69 {'laserjet' 'jet' 'GS' 'M' 'P' 'HP LaserJet', 0}
70 {'ljetplus' 'jet' 'GS' 'M' 'P' 'HP LaserJet Plus', 0}
71 {'ljet2p' 'jet' 'GS' 'M' 'P' 'HP LaserJet IId/IIp', 0}
72 {'ljet3' 'jet' 'GS' 'M' 'P' 'HP LaserJet III', 0}
73 {'ljet4' 'jet' 'GS' 'M' 'P' 'HP LaserJet 4/5L/5P', 0}
74 {'pxlmono' 'jet' 'GS' 'M' 'P' 'HP LaserJet 5/6', 0}
75 {'cdjcolor' 'jet' 'GS' 'C' 'P' ['HP DeskJet 500C 24bit' ...
76 'color'], 0}
77 {'cdjmono' 'jet' 'GS' 'M' 'P' 'HP DeskJet 500C b+w', 0}
78 {'deskjet' 'jet' 'GS' 'M' 'P' 'HP DeskJet/DeskJet Plus', 0}
79 {'cdj550' 'jet' 'GS' 'C' 'P' ['HP DeskJet 550C/' ...
80 '560C/660C/660Cse'], 0}
81 {'djet500' 'jet' 'GS' 'M' 'P' 'HP DeskJet 500C/540C', 0}
82 {'cdj500' 'jet' 'GS' 'C' 'P' 'HP DeskJet 500C', 0}
83 {'paintjet' 'jet' 'GS' 'C' 'P' 'HP PaintJet', 0}
84 {'pjetxl' 'jet' 'GS' 'C' 'P' 'HP PaintJet XL', 0}
85 {'pjxl' 'jet' 'GS' 'C' 'P' 'HP PaintJet XL (alternate)', 0}
86 {'pjxl300' 'jet' 'GS' 'C' 'P' 'HP PaintJet XL300', 0}
87 {'dnj650c' 'jet' 'GS' 'C' 'P' 'HP DesignJet 650C', 0}
88 {'bj10e' 'jet' 'GS' 'M' 'P' 'Canon BubbleJet 10e', 0}
89 {'bj200' 'jet' 'GS' 'C' 'P' 'Canon BubbleJet 200', 0}
90 {'bjc600' 'jet' 'GS' 'C' 'P' 'Canon Color BubbleJet 600/4000/70', 0}
91 {'bjc800' 'jet' 'GS' 'C' 'P' 'Canon Color BubbleJet 800', 0}
92 {'epson' 'ep' 'GS' 'M' 'P' 'Epson', 0}
93 {'epsonc' 'ep' 'GS' 'C' 'P' 'Epson LQ-2550', 0}
94 {'eps9high' 'ep' 'GS' 'M' 'P' 'Epson 9-pin', 0}
95 {'ibmpro' 'ibm' 'GS' 'M' 'P' 'IBM Proprinter', 0}
96 {'pcxmono' 'pcx' 'GS' 'M' 'X' '', 0}
97 {'pcxgray' 'pcx' 'GS' 'C' 'X' '', 0}
98 {'pcx16' 'pcx' 'GS' 'C' 'X' '', 0}
99 {'pcx256' 'pcx' 'GS' 'C' 'X' '', 0}
100 {'pcx24b' 'pcx' 'GS' 'C' 'X' 'Paintbrush 24-bit file', 0}
101 {'bmpmono' 'bmp' 'GS' 'M' 'X' '', 0}
102 {'bmp16m' 'bmp' 'GS' 'C' 'X' '', 0}
103 {'bmp256' 'bmp' 'GS' 'C' 'X' '', 0}
104 {'pngmono' 'png' 'GS' 'M' 'X' '', 0}
105 {'pnggray' 'png' 'GS' 'C' 'X' '', 0}
106 {'png16m' 'png' 'GS' 'C' 'X' '', 0}
107 {'png256' 'png' 'GS' 'C' 'X' '', 0}
108 {'pbm' 'pbm' 'GS' 'C' 'X' 'Portable Bitmap file', 0}
109 {'pbmraw' 'pbm' 'GS' 'C' 'X' '', 0}
110 {'pgm' 'pgm' 'GS' 'C' 'X' 'Portable Graymap file', 0}
111 {'pgmraw' 'pgm' 'GS' 'C' 'X' '', 0}
112 {'ppm' 'ppm' 'GS' 'C' 'X' 'Portable Pixmap file', 0}
113 {'ppmraw' 'ppm' 'GS' 'C' 'X' '', 0}
114 {'pkm' 'pkm' 'GS' 'C' 'X' 'Portable inKmap file', 0}
115 {'pkmraw' 'pkm' 'GS' 'C' 'X' '', 0}
116 {'tifflzw' 'tif' 'GS' 'C' 'X' '', 0}
117 {'tiffpack' 'tif' 'GS' 'C' 'X' '', 0}
118 {'tiff24nc' 'tif' 'GS' 'C' 'X' '', 0}
119 {'pdfwrite' 'pdf' 'GS' 'C' 'X' 'Portable Document Format', 0}
120 ];
121
40 122 if ispc
123 platform_device_table = [
124 {'win' '' 'MW' 'M' 'P' 'Windows', 0}
125 {'winc' '' 'MW' 'C' 'P' 'Color Windows', 0}
126 {'meta' 'emf' 'MW' 'C' 'X' 'Enhanced metafile', 1}
127 {'bitmap' 'bmp' 'MW' 'C' 'X' 'Bitmap file', 1}
128 {'setup' '' 'MW' 'M' '' '', 0}
129 ];
130
40 131 else %Unix
40 132 platform_device_table = ...
133 {'bitmap' 'bmp' 'QT' 'C' 'X' 'Bitmap file', 0};
40 134 end
135
40 136 device_table = [ platform_device_table ; device_table ];
137
138 %Set them in table as cell arrays of cell arrays for convience of entry,
139 %now break them up into individual cell arrays for ease of use.
140 %devices = device_table(:, 1 );
141 %extensions = device_table(:, 2 );
142 %classes = device_table(:, 3 );
143 %colorDevs = device_table(:, 4 );
144 %destinations = device_table(:, 5 );
145 %descriptions = device_table(:, 6 );
146 %clipsupport = device_table(:, 7);
0.02 40 147 [options, devices, extensions, classes, colorDevs, destinations, descriptions, clipsupport] = ...
148 postProcessPrinttables(pj, device_table, options);
40 149 end
Other subfunctions in this file are not included in this listing.