This is a static copy of a profile report

Home

Function details for snapnow>makeCounter/getCounterThis is a static copy of a profile report

Home

snapnow>makeCounter/getCounter (Calls: 10, Time: 0.000 s)
Generated 28-Jun-2020 10:10:22 using performance time.
nested function in file /Applications/MATLAB_R2018a.app/toolbox/matlab/codetools/snapnow.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
snapnow>leavingCellsubfunction5
snapnow>enteringCellsubfunction5
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
247
end
100.000 s2.3%
246
count = currentCount;
100.000 s0.5%
245
currentCount = currentCount + ...
100.000 s0.4%
All other lines  0.000 s96.8%
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 function6
Non-code lines (comments, blank lines)3
Code lines (lines that can run)3
Code lines that did run3
Code lines that did not run0
Coverage (did run/can run)100.00 %
Function listing
time 
Calls 
 line
 242 
    function count = getCounter
 243 
        % This function increments the variable 'currentCount', when it
 244 
        % gets called (using its function handle).
< 0.001 
     10 
 245
        currentCount = currentCount + 1; 
< 0.001 
     10 
 246
        count = currentCount; 
< 0.001 
     10 
 247
    end 

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