This is a static copy of a profile report

Home

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

Parents (calling functions)

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

Line NumberCodeCallsTotal Time% TimeTime Plot
40
bool = logical(bool);
400 s0%
23
bool = pj.DriverColor;
400 s0%
22
if pj.DriverColorSet
400 s0%
16
if( length(pj.Handles) == 1 &a...
400 s0%
All other lines  0 s0%
Totals  0 s0% 
Children (called functions)
No children
Code Analyzer results
Line numberMessage
27Use && instead of & as the AND operator in (scalar) conditional statements.
Coverage results
[ Show coverage for parent directory ]
Total lines in function40
Non-code lines (comments, blank lines)21
Code lines (lines that can run)19
Code lines that did run4
Code lines that did not run15
Coverage (did run/can run)21.05 %
Function listing
   time   calls  line
1 function bool = blt( pj, h )
2 %BLT Returns FALSE if Lines and Text objects in Figure should be printed in black.
3 % Looks at settings of DriverColor and DriverColorSet of PrintJob object
4 % and the PrintTemplate object, if any, in the Figure.
5
6 % Copyright 1984-2005 The MathWorks, Inc.
7 % $Revision: 1.5.4.6 $ $Date: 2008/09/18 15:57:14 $
8
9 %DriverColorSet was turned to TRUE iff there was a device cmd line argument
10 %If there was a cmd line device argument we use the DriverColor resulting from it
11 %otherwise we look for a PrintTemplate object in the Figure
12 %If there is one we return its DriverColor boolean value.
13
14 %depviewer should always be printed in color mode to avoid
15 %the going through NODITHER
40 16 if( length(pj.Handles) == 1 && ...
17 strcmpi(get(pj.Handles{1},'Tag'),'DAStudio.DepViewer') )
18 bool = true;
19 return;
20 end
21
40 22 if pj.DriverColorSet
40 23 bool = pj.DriverColor;
24 else
25 pt = getprinttemplate(h);
26 if isempty( pt )
27 if ispc & strncmp( pj.Driver, 'win', 3 )
28 %PC driver properties' dialog allows users to set a color option.
29 %PC code will call NODITHER if required.
30 bool = 1;
31 else
32 %Use setting based on default driver from PRINTOPT.
33 bool = pj.DriverColor;
34 end
35 else
36 bool = pt.DriverColor;
37 end
38 end
39
40 40 bool = logical(bool);