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: 1, Time: 0.001 s)
Generated 27-Jul-2019 12:51:47 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

This function changed during profiling or before generation of this report. Results may be incomplete or inaccurate.

Parents (calling functions)

Function NameFunction TypeCalls
allchildfunction1
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
51
if ~isa(functionHandle, 'funct...
10.000 s23.0%
54
obj.task = functionHandle;
10.000 s14.3%
55
end
10.000 s0.7%
50
narginchk(1, 1);
10.000 s0.0%
43
function obj = onCleanup(funct...
10 s0%
All other lines  0.001 s62.0%
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
      1 
  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 
      1 
  50
            narginchk(1, 1); 
< 0.001 
      1 
  51
            if ~isa(functionHandle, 'function_handle') || ~isscalar(functionHandle) 
  52 
                error(message('MATLAB:onCleanup:TaskMustBeFunctionHandle'));
  53 
            end
< 0.001 
      1 
  54
            obj.task = functionHandle; 
< 0.001 
      1 
  55
        end 

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