This is a static copy of a profile report

Home

saveLoadCompatibility>saveLoadCompatibility.saveLoadCompatibility (Calls: 8, Time: 0.000 s)
Generated 16-Jul-2020 17:09:49 using performance time.
class method in file /Applications/MATLAB_R2020a.app/toolbox/matlab/datatypes/shared/matlab_datatypes/+matlab/+internal/+datatypes/saveLoadCompatibility.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
tabular.tabular>tabular.tabularclass method8
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
1
classdef (Abstract) saveLoadCo...
80.000 s53.7%
All other lines  0.000 s46.3%
Totals  0.000 s100% 
Children (called functions)
No children
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function25
Non-code lines (comments, blank lines)12
Code lines (lines that can run)13
Code lines that did run1
Code lines that did not run12
Coverage (did run/can run)7.69 %
Function listing
time 
Calls 
 line
< 0.001 
      8 
   1
classdef (Abstract) saveLoadCompatibility 
   2 
    
   3 
    properties(Abstract, Constant, Access='protected')
   4 
        version;
   5 
    end
   6 

   7 
    methods(Hidden)
   8 
        function serialized = setCompatibleVersionLimit(obj, serialized, minCompatVer)
   9 
            serialized.versionSavedFrom = obj.version; % scalar double. version number of saved object
  10 
            serialized.minCompatibleVersion = minCompatVer; % scalar double. minimum running version required to reconstruct an instance from serialized data
  11 
            serialized.incompatibilityMsg = '';        % character row vector. Addition to warning message in case of incompatible load
  12 
        end
  13 

  14 
        function tf = isIncompatible(obj, serializedObj, warnMsgID)
  15 
            % Warn if current version is below the minimum compatible version of the serialized object
  16 
            tf = obj.version < serializedObj.minCompatibleVersion;
  17 
            if tf
  18 
                warnState = warning('backtrace','off'); % warn without backtrace for cleaner display
  19 
                restoreWarnState = onCleanup(@()warning(warnState));
  20 
                msg = strcat(getString(message(warnMsgID)), serializedObj.incompatibilityMsg);
  21 
                warning(warnMsgID, msg);
  22 
            end
  23 
        end
  24 
    end
  25 
end