This is a static copy of a profile report

Home

getDocAnchorForErrorID (Calls: 1, Time: 0.002 s)
Generated 18-May-2021 16:05:19 using performance time.
function in file /usr/local/MATLAB/R2021a/toolbox/matlab/helptools/+matlab/+internal/+doc/+csh/getDocAnchorForErrorID.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
getExtendedErrorCallbackfunction1
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
3
errorId (1,1) string = lasterr...
10.000 s26.4%
10
topicId = join(["error", parts...
10.000 s19.2%
5
shortname = missing;
10.000 s17.3%
9
shortname = lower(parts(1));
10.000 s11.0%
6
topicId = missing;
10.000 s10.6%
All other lines  0.000 s15.6%
Totals  0.002 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
missing>missing.missingclass method20.000 s4.2%
Self time (built-ins, overhead, etc.)  0.002 s95.8%
Totals  0.002 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function12
Non-code lines (comments, blank lines)1
Code lines (lines that can run)11
Code lines that did run11
Code lines that did not run0
Coverage (did run/can run)100.00 %
Function listing
time 
Calls 
 line
   1 
function [shortname, topicId] = getDocAnchorForErrorID(errorId)
< 0.001 
      1 
   2
    arguments 
< 0.001 
      1 
   3
        errorId (1,1) string = lasterror().identifier; %#ok<LERR> 
< 0.001 
      1 
   4
    end 
< 0.001 
      1 
   5
    shortname = missing; 
< 0.001 
      1 
   6
    topicId = missing; 
< 0.001 
      1 
   7
    parts = split(errorId, ':'); 
< 0.001 
      1 
   8
    if ~isscalar(parts) 
< 0.001 
      1 
   9
        shortname = lower(parts(1)); 
< 0.001 
      1 
  10
        topicId = join(["error", parts(2:end)'], '_'); 
< 0.001 
      1 
  11
    end 
< 0.001 
      1 
  12
end 

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