This is a static copy of a profile reportHome
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)
Lines where the most time was spent
| Line Number | Code | Calls | Total Time | % Time | Time Plot |
| 397 | if isempty(isLoggingEnabled) | 3 | 0.000 s | 19.1% |  |
| 405 | enabled = isLoggingEnabled; | 3 | 0.000 s | 14.9% |  |
| 395 | mlock; | 3 | 0.000 s | 13.3% |  |
| 393 | e = []; | 3 | 0.000 s | 12.5% |  |
| 396 | persistent isLoggingEnabled; | 3 | 0.000 s | 9.3% |  |
| All other lines | | | 0.000 s | 31.0% |  |
| Totals | | | 0.001 s | 100% | |
Children (called functions)
No childrenCode Analyzer results
Coverage results
Show coverage for parent directory
| Total lines in function | 16 |
| Non-code lines (comments, blank lines) | 3 |
| Code lines (lines that can run) | 13 |
| Code lines that did run | 11 |
| Code lines that did not run | 2 |
| 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.