This is a static copy of a profile report

Home

graphics/private/blt (6 calls, 0.000 sec)
Generated 14-Nov-2016 07:47:22 using cpu time.
function in file /usr/local/MATLAB/MATLAB_Production_Server/R2015a/toolbox/matlab/graphics/private/blt.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
...PrintPath>LocalSetupContentChangessubfunction6
Lines where the most time was spent
No measurable time spent in this function

Line NumberCodeCallsTotal Time% TimeTime Plot
52
end
60 s0%
51
bool = logical(bool);
60 s0%
31
bool = pj.DriverColor;
60 s0%
30
if pj.DriverColorSet
60 s0%
24
if( length(pj.Handles) == 1 &a...
60 s0%
All other lines  0 s0%
Totals  0 s0% 
Children (called functions)
No children
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function52
Non-code lines (comments, blank lines)29
Code lines (lines that can run)23
Code lines that did run5
Code lines that did not run18
Coverage (did run/can run)21.74 %
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 

   4 
%   Copyright 1984-2014 The MathWorks, Inc.
   5 

   6 
%DriverColorSet was turned to TRUE iff there was a device cmd line argument
   7 
%If there was a cmd line device argument we use the DriverColor resulting from it
   8 
%
   9 
%Otherwise we look for a PrintTemplate object in the Figure
  10 
%If there is one we return its DriverColor boolean value.
  11 
%
  12 
%Otherwise, on windows, 
  13 
% 1. if we're printing from the dialog (pj.Verbose) we
  14 
%    return true (and let the print code determine later if we need to change
  15 
%    to b&w)
  16 
% 2. if we're not printing from the dialog we base decision on whether or
  17 
%    not the printer supports color 
  18 
%
  19 
% Otherwise we just look at the driver and whether it says it supports color 
  20 
% (pj.DriverColor)
  21 

  22 
%depviewer should always be printed in color mode to avoid
  23 
%the going through NODITHER
      6 
  24 
if( length(pj.Handles) == 1 && ... 
  25 
    strcmpi(get(pj.Handles{1},'Tag'),'DAStudio.DepViewer') )
  26 
    bool = true;
  27 
    return;
  28 
end
  29 

      6 
  30 
if pj.DriverColorSet 
      6 
  31 
    bool = pj.DriverColor; 
  32 
else
  33 
    pt = getprinttemplate(h);
  34 
    if isempty( pt ) 
  35 
        %default to using setting based on default driver from PRINTOPT.
  36 
        bool = pj.DriverColor;
  37 
        if ispc && strncmp( pj.Driver, 'win', 3 )
  38 
        % using Windows print dialog - determine later if conversion needed
  39 
            if pj.Verbose
  40 
                bool = true;
  41 
            else
  42 
                % command line - ask if printer supports color
  43 
                bool = queryPrintServices('supportscolor', pj.PrinterName);
  44 
            end
  45 
        end
  46 
    else
  47 
        bool = pt.DriverColor;
  48 
    end
  49 
end
  50 

      6 
  51 
bool = logical(bool); 
      6 
  52 
end