This is a static copy of a profile report

Home

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)

Function NameFunction TypeCalls
openfig>cleanUpsubfunction1
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
159
fname = genvarname(filename); ...
10.020 s100.0%
162
token = token(1:min(end, namel...
10 s0%
161
token = ['OpenFig_' fname '_SI...
10 s0%
160
fname = fliplr(fname);        ...
10 s0%
All other lines  0 s0%
Totals  0.020 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
genvarnamefunction10.010 s50.0%
fliplrfunction10 s0%
Self time (built-ins, overhead, etc.)  0.010 s50.0%
Totals  0.020 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
[ Show coverage for parent directory ]
Total lines in function7
Non-code lines (comments, blank lines)3
Code lines (lines that can run)4
Code lines that did run4
Code lines that did not run0
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));