This is a static copy of a profile report

Home

Function details for onCleanup>onCleanup.onCleanupThis is a static copy of a profile report

Home

onCleanup>onCleanup.onCleanup (Calls: 2, Time: 0.001 s)
Generated 27-Jul-2019 21:16:52 using performance time.
class method in file C:\Program Files\MATLAB\R2019a\toolbox\matlab\general\onCleanup.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
allchildfunction2
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
51
if ~isa(functionHandle, 'funct...
20.000 s21.8%
54
obj.task = functionHandle;
20.000 s15.8%
55
end
20.000 s1.5%
50
narginchk(1, 1);
20.000 s0.1%
43
function obj = onCleanup(funct...
20.000 s0.1%
All other lines  0.000 s60.8%
Totals  0.001 s100% 
Children (called functions)
No children
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function13
Non-code lines (comments, blank lines)6
Code lines (lines that can run)7
Code lines that did run5
Code lines that did not run2
Coverage (did run/can run)71.43 %
Function listing
time 
Calls 
 line
< 0.001 
      2 
  43
        function obj = onCleanup(functionHandle) 
  44 
            % onCleanup - Create an ONCLEANUP object
  45 
            %   C = ONCLEANUP(FUNC) creates C, a ONCLEANUP object. There is no need to
  46 
            %   further interact with the variable, C. It will execute FUNC at the time
  47 
            %   it is cleared.
  48 
            %
  49 
            %   See also: CLEAR, ONCLEANUP
< 0.001 
      2 
  50
            narginchk(1, 1); 
< 0.001 
      2 
  51
            if ~isa(functionHandle, 'function_handle') || ~isscalar(functionHandle) 
  52 
                error(message('MATLAB:onCleanup:TaskMustBeFunctionHandle'));
  53 
            end
< 0.001 
      2 
  54
            obj.task = functionHandle; 
< 0.001 
      2 
  55
        end 

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