This is a static copy of a profile reportHome
gtitle (84 calls, 0.219 sec)
Generated 05-Aug-2011 13:03:27 using cpu time.
function in file /home/LeechJ/cbass_analysis/matutils/gtitle.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 |
10 | axes('Position',[0,0,1,1],'Vis... | 84 | 0.109 s | 50.0% |  |
6 | if(~exist('y')) | 84 | 0.087 s | 40.0% |  |
11 | h=text(0.5,y,str,'Units','Norm... | 84 | 0.022 s | 10.0% |  |
12 | 'HorizontalAlignment','center'... | 84 | 0 s | 0% |  |
8 | end | 84 | 0 s | 0% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 0.219 s | 100% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
scribe.legend.init>changedCurrentAxes | subfunction | 13 | 0.098 s | 45.0% |  |
Self time (built-ins, overhead, etc.) | | | 0.120 s | 55.0% |  |
Totals | | | 0.219 s | 100% | |
Code Analyzer results
Line number | Message |
6 | EXIST with two input arguments is generally faster and clearer than with one input argument. |
Coverage results
[ Show coverage for parent directory ]
Total lines in function | 12 |
Non-code lines (comments, blank lines) | 6 |
Code lines (lines that can run) | 6 |
Code lines that did run | 6 |
Code lines that did not run | 0 |
Coverage (did run/can run) | 100.00 % |
Function listing
time calls line
1 function h=gtitle(str,y)
2 % function gtitle(str)
3 %
4 % Put a global title on the current figure
5
0.09 84 6 if(~exist('y'))
84 7 y=0.96;
84 8 end
9
0.11 84 10 axes('Position',[0,0,1,1],'Visible','off')
0.02 84 11 h=text(0.5,y,str,'Units','Normalized','FontSize',18,...
84 12 'HorizontalAlignment','center');