This is a static copy of a profile reportHome
scribe.legend.init>changedCurrentAxes (75 calls, 0.525 sec)
Generated 05-Aug-2011 13:02:22 using cpu time.
subfunction in file /usr/local/MATLAB/R2011a/toolbox/matlab/scribe/@scribe/@legend/init.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 |
556 | graph2dhelper('updateLegendMen... | 69 | 0.514 s | 97.9% |  |
551 | if isa(handle(ax),'scribe.lege... | 75 | 0.011 s | 2.1% |  |
554 | return; | 6 | 0 s | 0% |  |
553 | set(fig, 'CurrentAxes', double... | 6 | 0 s | 0% |  |
552 | fig = ancestor(ax,'figure'); | 6 | 0 s | 0% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 0.525 s | 100% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
graph2dhelper | function | 69 | 0.514 s | 97.9% |  |
opaque.double | function | 6 | 0 s | 0% |  |
Self time (built-ins, overhead, etc.) | | | 0.011 s | 2.1% |  |
Totals | | | 0.525 s | 100% | |
Code Analyzer results
Coverage results
[ Show coverage for parent directory ]
Total lines in function | 8 |
Non-code lines (comments, blank lines) | 1 |
Code lines (lines that can run) | 7 |
Code lines that did run | 6 |
Code lines that did not run | 1 |
Coverage (did run/can run) | 85.71 % |
Function listing
time calls line
549 function changedCurrentAxes(hProp,eventData) %#ok
75 550 ax = eventData.NewValue;
0.01 75 551 if isa(handle(ax),'scribe.legend')
6 552 fig = ancestor(ax,'figure');
6 553 set(fig, 'CurrentAxes', double(get(ax,'Axes')));
6 554 return;
555 end
0.51 69 556 graph2dhelper('updateLegendMenuToolbar', [], [], ax);