This is a static copy of a profile report

Home

Function details for rng>getCurrentTypeThis is a static copy of a profile report

Home

rng>getCurrentType (Calls: 1, Time: 0.167 s)
Generated 19-Jun-2021 04:39:01 using performance time.
subfunction in file /nfs/linux/matlab-2019b/toolbox/matlab/randfun/rng.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
rngfunction1
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
181
curr = RandStream.getGlobalStr...
10.162 s97.5%
182
gentype = curr.Type;
10.004 s2.5%
183
if strcmpi(gentype,'legacy')
10.000 s0.0%
187
end
10.000 s0.0%
All other lines  0.000 s0.0%
Totals  0.167 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
RandStream.RandStream>getMethodNamesclass method10.024 s14.4%
...dStream>RandStream.getGlobalStreamclass method10.006 s3.7%
RandStream.RandStream>RandStream.subsrefclass method10.004 s2.1%
mpowerfunction50.001 s0.5%
Self time (built-ins, overhead, etc.)  0.132 s79.3%
Totals  0.167 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function8
Non-code lines (comments, blank lines)2
Code lines (lines that can run)6
Code lines that did run4
Code lines that did not run2
Coverage (did run/can run)66.67 %
Function listing
time 
Calls 
 line
 180 
function gentype = getCurrentType
  0.162 
      1 
 181
curr = RandStream.getGlobalStream(); 
  0.004 
      1 
 182
gentype = curr.Type; 
< 0.001 
      1 
 183
if strcmpi(gentype,'legacy') 
 184 
    % Disallow reseeding when in legacy mode, even with a zero seed
 185 
    suggestion = RandStream.compatName(RandStream.DefaultStartupType);
 186 
    throwAsCaller(MException('MATLAB:rng:reseedLegacy',getString(message('MATLAB:rng:reseedLegacy',suggestion))));
< 0.001 
      1 
 187
end 

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