tabular.disp>boldifyLabels (Calls: 16, Time: 0.008 s)
Generated 16-Jul-2020 17:09:34 using performance time.
subfunction in file /Applications/MATLAB_R2020a.app/toolbox/matlab/datatypes/tabular/@tabular/disp.m
Copy to new window for comparing multiple runs
Function Name | Function Type | Calls |
tabular.disp | function | 16 |
Line Number | Code | Calls | Total Time | % Time | Time Plot |
527 | hasLinks = containsRegexp(name... | 16 | 0.004 s | 46.7% | |
532 | names(~hasLinks) = strongBegin... | 16 | 0.002 s | 25.4% | |
528 | if bold && strlength(s... | 16 | 0.002 s | 22.1% | |
534 | end | 16 | 0.000 s | 0.2% | |
529 | if any(hasLinks) | 16 | 0.000 s | 0.1% | |
All other lines | 0.000 s | 5.5% | |||
Totals | 0.008 s | 100% |
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
tabular.disp>containsRegexp | subfunction | 16 | 0.003 s | 35.8% | |
strlength | function | 16 | 0.000 s | 1.2% | |
Self time (built-ins, overhead, etc.) | 0.005 s | 63.1% | |||
Totals | 0.008 s | 100% |
Total lines in function | 12 |
Non-code lines (comments, blank lines) | 4 |
Code lines (lines that can run) | 8 |
Code lines that did run | 7 |
Code lines that did not run | 1 |
Coverage (did run/can run) | 87.50 % |
time | Calls | line | |
---|---|---|---|
523 | function [names, hasLinks] = boldifyLabels(names,bold,strongBegin,strongEnd) | ||
524 | % Make varnames/rownames bold. If the name contains a hyperlink, they need | ||
525 | % to be handled differently because the Command Window will end up | ||
526 | % displaying the literal <strong> tags. | ||
0.004 | 16 | 527 | hasLinks = containsRegexp(names,'a\s+href\s*='); |
0.002 | 16 | 528 | if bold && strlength(strongBegin) > 0 |
< 0.001 | 16 | 529 | if any(hasLinks) |
530 | names(hasLinks) = boldifyLinks(names(hasLinks),strongBegin,strongEnd); | ||
< 0.001 | 16 | 531 | end |
0.002 | 16 | 532 | names(~hasLinks) = strongBegin + names(~hasLinks) + strongEnd; |
< 0.001 | 16 | 533 | end |
< 0.001 | 16 | 534 | end |
Other subfunctions in this file are not included in this listing.