This is a static copy of a profile report

Home

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

Parents (calling functions)

Function NameFunction TypeCalls
isUIContextMenuSupportedfunction22
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
29
cleanupObj = suppressWarning('...
220.020 s57.2%
32
jf = get(hObj,'JavaFrame');
220.010 s29.7%
33
end
220.004 s11.9%
All other lines  0.000 s1.2%
Totals  0.035 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
JavaMigrationTools>suppressWarningclass method220.020 s56.1%
JavaMigrationTools>@()warning(w)anonymous function220.001 s2.4%
...nTools>@()lastwarn(lastmsg,lastid)anonymous function220.001 s1.6%
Self time (built-ins, overhead, etc.)  0.014 s39.9%
Totals  0.035 s100% 
Code Analyzer results
Line numberMessage
29The 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.
Coverage results
Show coverage for parent directory
Total lines in function10
Non-code lines (comments, blank lines)7
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
  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.