This is a static copy of a profile report

Home

printHelper>printHelper.requestGCIfNeeded (Calls: 12, Time: 0.002 s)
Generated 16-Jul-2020 17:09:36 using performance time.
class method in file /Applications/MATLAB_R2020a.app/toolbox/matlab/graphics/printing/+matlab/+graphics/+internal/printHelper.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
...te/alternatePrintPath>printCleanupsubfunction12
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
18
if ~mod(printCountSinceLastGC,...
120.000 s24.5%
22
requestedCount = printCountSin...
120.000 s16.7%
17
printCountSinceLastGC = printC...
120.000 s13.9%
13
persistent printCountSinceLast...
120.000 s11.8%
14
if isempty(printCountSinceLast...
120.000 s10.6%
All other lines  0.000 s22.4%
Totals  0.002 s100% 
Children (called functions)
No children
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function13
Non-code lines (comments, blank lines)1
Code lines (lines that can run)12
Code lines that did run9
Code lines that did not run3
Coverage (did run/can run)75.00 %
Function listing
time 
Calls 
 line
  11 
        function [requestedCount, MAX_PRINT_COUNT] = requestGCIfNeeded()
< 0.001 
     12 
  12
           MAX_PRINT_COUNT = 25; 
< 0.001 
     12 
  13
           persistent printCountSinceLastGC; 
< 0.001 
     12 
  14
           if isempty(printCountSinceLastGC) 
  15 
               printCountSinceLastGC = 0;
< 0.001 
     12 
  16
           end 
< 0.001 
     12 
  17
           printCountSinceLastGC = printCountSinceLastGC + 1; 
< 0.001 
     12 
  18
           if ~mod(printCountSinceLastGC, MAX_PRINT_COUNT) 
  19 
               java.lang.System.gc();
  20 
               printCountSinceLastGC = 0;
< 0.001 
     12 
  21
           end 
< 0.001 
     12 
  22
           requestedCount = printCountSinceLastGC; 
< 0.001 
     12 
  23
        end 

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