This is a static copy of a profile report

Home

WorkspaceListener>WorkspaceListener.logEventsEnabled (Calls: 3, Time: 0.001 s)
Generated 18-May-2021 16:05:15 using performance time.
class method in file /usr/local/MATLAB/R2021a/toolbox/matlab/datatools/datatoolsservices/matlab/+internal/+matlab/+datatoolsservices/WorkspaceListener.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
...istener>WorkspaceListener.logEventclass method3
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
397
if isempty(isLoggingEnabled)
30.000 s19.1%
405
enabled = isLoggingEnabled;
30.000 s14.9%
395
mlock;
30.000 s13.3%
393
e = [];
30.000 s12.5%
396
persistent isLoggingEnabled;
30.000 s9.3%
All other lines  0.000 s31.0%
Totals  0.001 s100% 
Children (called functions)
No children
Code Analyzer results
Line numberMessage
Coverage results
Show coverage for parent directory
Total lines in function16
Non-code lines (comments, blank lines)3
Code lines (lines that can run)13
Code lines that did run11
Code lines that did not run2
Coverage (did run/can run)84.62 %
Function listing
time 
Calls 
 line
 391 
        function enabled = logEventsEnabled(e)
      3 
 392
            arguments 
< 0.001 
      3 
 393
                e = []; 
      3 
 394
            end 
< 0.001 
      3 
 395
            mlock; 
< 0.001 
      3 
 396
            persistent isLoggingEnabled; 
< 0.001 
      3 
 397
            if isempty(isLoggingEnabled) 
 398 
                isLoggingEnabled = false;
      3 
 399
            end 
 400 
            
< 0.001 
      3 
 401
            if ~isempty(e) 
 402 
                isLoggingEnabled = e;
      3 
 403
            end 
 404 
            
< 0.001 
      3 
 405
            enabled = isLoggingEnabled; 
< 0.001 
      3 
 406
        end 

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