This is a static copy of a profile reportHome
openfig>getToken (1 call, 0.020 sec)
Generated 05-Nov-2014 07:52:56 using cpu time.
subfunction in file /usr1/opt/matlab/7.13/toolbox/matlab/graphics/openfig.m
Copy to new window for comparing multiple runs
Parents (calling functions)
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
159 | fname = genvarname(filename); ... | 1 | 0.020 s | 100.0% |  |
162 | token = token(1:min(end, namel... | 1 | 0 s | 0% |  |
161 | token = ['OpenFig_' fname '_SI... | 1 | 0 s | 0% |  |
160 | fname = fliplr(fname); ... | 1 | 0 s | 0% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 0.020 s | 100% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
genvarname | function | 1 | 0.010 s | 50.0% |  |
fliplr | function | 1 | 0 s | 0% |  |
Self time (built-ins, overhead, etc.) | | | 0.010 s | 50.0% |  |
Totals | | | 0.020 s | 100% | |
Code Analyzer results
No Code Analyzer messages.Coverage results
[ Show coverage for parent directory ]
Total lines in function | 7 |
Non-code lines (comments, blank lines) | 3 |
Code lines (lines that can run) | 4 |
Code lines that did run | 4 |
Code lines that did not run | 0 |
Coverage (did run/can run) | 100.00 % |
Function listing
time calls line
156 function token = getToken(filename)
157 % We will use this token, based on the base name of the file
158 % (without path or extension) to track open instances of figure.
0.02 1 159 fname = genvarname(filename); % convert the file name to a valid field name
1 160 fname = fliplr(fname); % file name is more important
1 161 token = ['OpenFig_' fname '_SINGLETON']; % hide leading kruft
1 162 token = token(1:min(end, namelengthmax));