JavaMigrationTools>JavaMigrationTools.suppressedJavaFrame (Calls: 22, Time: 0.035 s)
Generated 16-Jul-2020 17:09:20 using performance time.
class method in file /Applications/MATLAB_R2020a.app/toolbox/matlab/uitools/+matlab/+ui/+internal/JavaMigrationTools.m
Copy to new window for comparing multiple runs
Function Name | Function Type | Calls |
isUIContextMenuSupported | function | 22 |
Line Number | Code | Calls | Total Time | % Time | Time Plot |
29 | cleanupObj = suppressWarning('... | 22 | 0.020 s | 57.2% | |
32 | jf = get(hObj,'JavaFrame'); | 22 | 0.010 s | 29.7% | |
33 | end | 22 | 0.004 s | 11.9% | |
All other lines | 0.000 s | 1.2% | |||
Totals | 0.035 s | 100% |
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
JavaMigrationTools>suppressWarning | class method | 22 | 0.020 s | 56.1% | |
JavaMigrationTools>@()warning(w) | anonymous function | 22 | 0.001 s | 2.4% | |
...nTools>@()lastwarn(lastmsg,lastid) | anonymous function | 22 | 0.001 s | 1.6% | |
Self time (built-ins, overhead, etc.) | 0.014 s | 39.9% | |||
Totals | 0.035 s | 100% |
Line number | Message |
29 | The value assigned to variable 'cleanupObj' might be unused. |
32 | 'JavaFrame' is undocumented and will be removed in a future release. There is no simple replacement for this. |
Total lines in function | 10 |
Non-code lines (comments, blank lines) | 7 |
Code lines (lines that can run) | 3 |
Code lines that did run | 3 |
Code lines that did not run | 0 |
Coverage (did run/can run) | 100.00 % |
time | Calls | line | |
---|---|---|---|
24 | function jf = suppressedJavaFrame(hObj) | ||
25 | % Temporarily disable the JavaFrame warning | ||
26 | % Suppress it specifically here (instead of calling | ||
27 | % suppressJavaFrameWarning) so that stack level detection | ||
28 | % works properly. | ||
0.020 | 22 | 29 | cleanupObj = suppressWarning('MATLAB:ui:javaframe:PropertyToBeRemoved'); |
30 | |||
31 | % Call JavaFrame on the object: figure or uicontainer | ||
0.010 | 22 | 32 | jf = get(hObj,'JavaFrame'); |
0.004 | 22 | 33 | end |
Other subfunctions in this file are not included in this listing.