This is a static copy of a profile report

Home

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

Parents (calling functions)

Function NameFunction TypeCalls
...>PlotEditBehavior.PlotEditBehaviorclass method16
...havior>PrintBehavior.PrintBehaviorclass method16
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
6
classdef HGBehavior < matla...
320.000 s46.2%
All other lines  0.000 s53.8%
Totals  0.001 s100% 
Children (called functions)
No children
Code Analyzer results
Line numberMessage
18TRY statement should have a CATCH statement to check for unexpected errors.
19The variable 'b' appears to change size on every loop iteration. Consider preallocating for speed.
Coverage results
Show coverage for parent directory
Total lines in function29
Non-code lines (comments, blank lines)17
Code lines (lines that can run)12
Code lines that did run1
Code lines that did not run11
Coverage (did run/can run)8.33 %
Function listing
time 
Calls 
 line
   1 

   2 
%
   3 

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

< 0.001 
     32 
   6
classdef HGBehavior < matlab.mixin.SetGet & matlab.mixin.Heterogeneous 
   7 
   % This internal class which may be removed in a future release.
   8 
   % Abstract Base class for behavior objects. 
   9 
   % This is to support concatenation of behavior objects
  10 
   % Defining an abstract method dosupport
  11 
   methods (Abstract)
  12 
       dosupport(~,hTarget)
  13 
   end
  14 
   methods (Static)
  15 
       function deserializeBehaviorsStruct(obj, behaviors)
  16 
           b = [];
  17 
           for n = 1:length(behaviors)
  18 
               try
  19 
                   b(n) = feval(behaviors(n).class);
  20 
                   set(b(n), behaviors(n).properties);
  21 
               end
  22 
           end
  23 
           for n = 1:length(b)
  24 
               hgaddbehavior(obj, b(n));
  25 
           end 
  26 
       end       
  27 
   end
  28 
end
  29