This is a static copy of a profile report

Home

Function details for markFigureThis is a static copy of a profile report

Home

markFigure (Calls: 2, Time: 0.002 s)
Generated 01-May-2020 20:23:10 using performance time.
function in file /Applications/MATLAB_R2018a.app/toolbox/matlab/graphics/+matlab/+graphics/+internal/markFigure.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
titlefunction2
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
6
for obj = objs(:)'
20.001 s46.1%
9
if ~isempty(fig) && is...
20.000 s15.8%
8
fig = ancestor(obj,'figure');
20.000 s13.4%
7
if isgraphics(obj)
20.000 s8.6%
20
end
20.000 s5.0%
All other lines  0.000 s11.2%
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 function20
Non-code lines (comments, blank lines)6
Code lines (lines that can run)14
Code lines that did run6
Code lines that did not run8
Coverage (did run/can run)42.86 %
Function listing
time 
Calls 
 line
   1 
function markFigure(objs)
   2 
%markFigure Mark an editor figure as changed
   3 

   4 
%   Copyright 2015 The MathWorks, Inc.
   5 

< 0.001 
      2 
   6
for obj = objs(:)' 
< 0.001 
      2 
   7
    if isgraphics(obj) 
< 0.001 
      2 
   8
        fig = ancestor(obj,'figure'); 
< 0.001 
      2 
   9
        if ~isempty(fig) && isappdata(fig, 'EDITOR_APPDATA') 
  10 
            % toggling Color to mark the figure as changed
  11 
            color = get(fig,'Color');
  12 
            newcolor = 1-color;
  13 
            if isequal(color, newcolor)
  14 
                newcolor = [0 0 0];
  15 
            end
  16 
            set(fig,'Color',newcolor);
  17 
            set(fig,'Color',color);
  18 
        end
< 0.001 
      2 
  19
    end 
< 0.001 
      2 
  20
end 

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