This is a static copy of a profile report

Home

mustBeMember (Calls: 2, Time: 0.012 s)
Generated 18-May-2021 16:05:25 using performance time.
function in file /usr/local/MATLAB/R2021a/toolbox/matlab/validators/mustBeMember.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
...lugin>PostUpdatePlugin.doCacheLoadclass method2
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
14
if ~all(ismember(A, B), "all")
20.012 s99.5%
23
end
20.000 s0.1%
22
end
20.000 s0.1%
All other lines  0.000 s0.3%
Totals  0.012 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
ismemberfunction20.010 s90.5%
Self time (built-ins, overhead, etc.)  0.001 s9.5%
Totals  0.012 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function23
Non-code lines (comments, blank lines)17
Code lines (lines that can run)6
Code lines that did run3
Code lines that did not run3
Coverage (did run/can run)50.00 %
Function listing
time 
Calls 
 line
   1 
function mustBeMember(A, B)
   2 
%MUSTBEMEMBER Validate value is member of specified set
   3 
%   MUSTBEMEMBER(A, B) throws an error if A is not a member of B.
   4 
%   MATLAB calls ismember(A,B) to determine if A is a member of B.
   5 
%
   6 
%   Class support:
   7 
%   All numeric classes, logical, char, cellstr
   8 
%   MATLAB classes that define an ismember method.
   9 
%
  10 
%   See also: ISMEMBER.
  11 
    
  12 
%   Copyright 2016-2020 The MathWorks, Inc.
  13 

  0.012 
      2 
  14
    if ~all(ismember(A, B), "all") 
  15 
        throwAsCaller(...
  16 
            createValidatorExceptionWithValue(...
  17 
                createPrintableList(B),...
  18 
                'MATLAB:validators:mustBeMemberGenericText',...
  19 
                'MATLAB:validators:mustBeMember'...
  20 
                )...
  21 
        );
< 0.001 
      2 
  22
    end 
< 0.001 
      2 
  23
end 

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