This is a static copy of a profile report

Home

markFigure (Calls: 72, Time: 0.013 s)
Generated 16-Jul-2020 17:10:02 using performance time.
function in file /Applications/MATLAB_R2020a.app/toolbox/matlab/graphics/+matlab/+graphics/+internal/markFigure.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
view>ViewCoresubfunction2
gridfunction2
titlefunction10
holdfunction56
rulerFunctionsfunction2
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
6
for obj = objs(:)'
720.005 s39.1%
8
fig = ancestor(obj,'figure');
720.004 s34.0%
9
if ~isempty(fig) && is...
720.002 s13.3%
7
if isgraphics(obj)
720.001 s4.9%
24
end
720.001 s4.8%
All other lines  0.001 s3.9%
Totals  0.013 s100% 
Children (called functions)
No children
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function24
Non-code lines (comments, blank lines)6
Code lines (lines that can run)18
Code lines that did run7
Code lines that did not run11
Coverage (did run/can run)38.89 %
Function listing
time 
Calls 
 line
   1 
function markFigure(objs)
   2 
%markFigure Mark an editor figure as changed
   3 

   4 
%   Copyright 2015-2017 The MathWorks, Inc.
   5 

  0.005 
     72 
   6
for obj = objs(:)' 
< 0.001 
     72 
   7
    if isgraphics(obj) 
  0.004 
     72 
   8
        fig = ancestor(obj,'figure'); 
  0.002 
     72 
   9
        if ~isempty(fig) && isappdata(fig, 'EDITOR_APPDATA') 
  10 
            % toggling Color to mark the figure as changed
  11 
            color = get(fig,'Color');
  12 
            if isnumeric(color)
  13 
                newcolor = 1-color;
  14 
                if isequal(color, newcolor)
  15 
                    newcolor = [0 0 0];
  16 
                end
  17 
            else % Figure color can be 'none'
  18 
                newcolor = [0 0 0];
  19 
            end
  20 
            set(fig,'Color',newcolor);
  21 
            set(fig,'Color',color);
< 0.001 
     72 
  22
        end 
< 0.001 
     72 
  23
    end 
< 0.001 
     72 
  24
end