This is a static copy of a profile report

Home

graph2d/private/labelcheck (Calls: 36, Time: 0.004 s)
Generated 16-Jul-2020 17:08:48 using performance time.
function in file /Applications/MATLAB_R2020a.app/toolbox/matlab/graph2d/private/labelcheck.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
xlabelfunction12
ylabelfunction12
titlefunction10
ploteditfunction2
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
28
if isempty(ax) && narg...
360.001 s21.0%
16
inds = find(strcmpi('parent',a...
360.001 s16.2%
8
nargs = length(varargin{:});
360.001 s12.9%
7
args = varargin{:};
360.001 s11.9%
10
if (nargs > 0) && (...
360.000 s9.1%
All other lines  0.001 s28.8%
Totals  0.004 s100% 
Children (called functions)
No children
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function31
Non-code lines (comments, blank lines)7
Code lines (lines that can run)24
Code lines that did run12
Code lines that did not run12
Coverage (did run/can run)50.00 %
Function listing
time 
Calls 
 line
   1 
function [ax,args,nargs] = labelcheck(propname,varargin)
   2 
% Determines if object has text property named propname
   3 
% 
   4 

   5 
%   Copyright 2013-2019 The MathWorks, Inc.
   6 

< 0.001 
     36 
   7
args = varargin{:}; 
< 0.001 
     36 
   8
nargs = length(varargin{:}); 
< 0.001 
     36 
   9
ax=[]; 
< 0.001 
     36 
  10
if (nargs > 0) && (numel(args{1}) == 1) && local_validlabelobj(args{1},propname) 
  11 
  ax = args{1};
  12 
  args = args(2:end);
  13 
  nargs = nargs-1;
< 0.001 
     36 
  14
end 
< 0.001 
     36 
  15
if nargs > 0 
< 0.001 
     36 
  16
  inds = find(strcmpi('parent',args)); 
< 0.001 
     36 
  17
  if ~isempty(inds) 
  18 
    inds = unique([inds inds+1]);
  19 
    pind = inds(end);
  20 
    if nargs >= pind && local_validlabelobj(args{pind},propname)
  21 
      ax = args{pind};
  22 
      args(inds) = [];
  23 
      nargs = length(args);
  24 
    end
< 0.001 
     36 
  25
  end 
< 0.001 
     36 
  26
end 
  27 

< 0.001 
     36 
  28
if isempty(ax) && nargs>0 && isscalar(args{1}) && ... 
  29 
        isa(args{1},'matlab.graphics.axis.AbstractAxes') && ~isvalid(args{1})
  30 
    throwAsCaller(MException(message('MATLAB:class:InvalidHandle')));
< 0.001 
     36 
  31
end 

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