This is a static copy of a profile report

Home

graphics/private/inputcheck>LocalCheckForDeprecation (12 calls, 0.020 sec)
Generated 14-Nov-2016 07:47:16 using cpu time.
subfunction in file /usr/local/MATLAB/MATLAB_Production_Server/R2015a/toolbox/matlab/graphics/private/inputcheck.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
graphics/private/inputcheckfunction12
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
369
[ ~, ~, ~, ~, depDevices, depD...
120.020 s100.0%
372
return;
120 s0%
371
if isempty(depIndex)
120 s0%
370
depIndex = find(strcmp(depDevi...
120 s0%
366
deviceToCheck = pj.Driver;
120 s0%
All other lines  0 s0%
Totals  0.020 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
graphics/private/getDeprecatedDeviceListfunction120.020 s100.0%
Self time (built-ins, overhead, etc.)  0 s0%
Totals  0.020 s100% 
Code Analyzer results
Line numberMessage
Coverage results
Show coverage for parent directory
Total lines in function70
Non-code lines (comments, blank lines)14
Code lines (lines that can run)56
Code lines that did run7
Code lines that did not run49
Coverage (did run/can run)12.50 %
Function listing
time 
calls 
 line
 363 
function LocalCheckForDeprecation(pj)
     12 
 364 
msgID = ''; 
     12 
 365 
msgText = ''; 
     12 
 366 
deviceToCheck = pj.Driver; 
 367 

 368 
% Get deprecated device list
  0.02 
     12 
 369 
[ ~, ~, ~, ~, depDevices, depDestinations, ~ ] = getDeprecatedDeviceList(); 
     12 
 370 
depIndex = find(strcmp(depDevices, deviceToCheck)); 
     12 
 371 
if isempty(depIndex) 
     12 
 372 
    return; 
 373 
end
 374 
depDest = depDestinations(depIndex);
 375 
if isempty(depDest)
 376 
    depDest = '';
 377 
end
 378 

 379 
if strcmpi(deviceToCheck, 'ill')
 380 
    % Native illustrator support will be removed
 381 
    msgID = 'MATLAB:print:Illustrator:DeprecatedDevice';
 382 
    if pj.UseOriginalHGPrinting
 383 
        msgText = getString(message('MATLAB:uistring:inputcheck:ThedillPrintDeviceWillBeRemovedInAFutureRelease'));
 384 
    else
 385 
        msgText = getString(message('MATLAB:uistring:inputcheck:ThedillPrintDeviceHasBeenRemoved'));
 386 
    end
 387 
elseif strcmpi(deviceToCheck, 'mfile')
 388 
    % MFile Code Generation Option Removed
 389 
    msgID = 'MATLAB:print:DeprecatedMATLABCodeGenerationOption';
 390 
    if pj.UseOriginalHGPrinting
 391 
        msgText = getString(message('MATLAB:printdmfile:DeprecatedMATLABCodeGenerationOption'));
 392 
    else
 393 
        msgText = getString(message('MATLAB:print:DeprecatedMATLABCodeGenerationOption'));
 394 
    end
 395 
elseif strcmp('P', depDest)
 396 
    % some older printer devices are being deprecated
 397 
    msgID = 'MATLAB:Print:Deprecate:PrinterFormat';
 398 
    if pj.UseOriginalHGPrinting
 399 
        msgText = sprintf('%s',getString(message('MATLAB:uistring:inputcheck:ThePrintDeviceWillBeRemovedInAFutureRelease', ...
 400 
                             deviceToCheck)));
 401 
    else
 402 
        msgText = sprintf('%s',getString(message('MATLAB:uistring:inputcheck:ThePrintDeviceHasBeenRemoved', ...
 403 
                           deviceToCheck)));
 404 
    end
 405 
elseif strcmp('X', depDest)
 406 
    msgID = 'MATLAB:Print:Deprecate:GraphicFormat';
 407 
    if pj.UseOriginalHGPrinting
 408 
        msgText = sprintf( getString(message('MATLAB:uistring:inputcheck:TheGraphicExportFormatWillBeRemovedInAFutureRelease', ...
 409 
                              deviceToCheck)));
 410 
    else
 411 
        msgText = sprintf( getString(message('MATLAB:uistring:inputcheck:TheGraphicExportFormatHasBeenRemoved', ...
 412 
                            deviceToCheck)));
 413 
    end
 414 
elseif strcmpi('setup',deviceToCheck)
 415 
    msgID = 'MATLAB:Print:DSetupOptionRemoved';
 416 
    if pj.UseOriginalHGPrinting
 417 
        msgText = sprintf( getString(message('MATLAB:print:DSetupOptionDeprecation')));
 418 
    else
 419 
        msgText = sprintf( getString(message('MATLAB:print:DSetupOptionRemoved')));
 420 
    end
 421 
end
 422 

 423 
if ~isempty(msgID)
 424 
    if pj.UseOriginalHGPrinting
 425 
        warning(msgID, msgText);
 426 
    else
 427 
        error(msgID, msgText);
 428 
    end
 429 
end
 430 

 431 
%EOFunction LocalCheckForDeprecation
 432 
end

Other subfunctions in this file are not included in this listing.