This is a static copy of a profile reportHome
workspacefunc>getStatObjectsJ (4 calls, 0.011 sec)
Generated 05-Aug-2011 13:01:12 using cpu time.
subfunction in file /usr/local/MATLAB/R2011a/toolbox/matlab/codetools/workspacefunc.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 |
405 | ret(i) = getStatObjectJ(var, b... | 14 | 0.011 s | 100.0% |  |
416 | warning(w); | 4 | 0 s | 0% |  |
415 | end | 14 | 0 s | 0% |  |
414 | end | 14 | 0 s | 0% |  |
404 | try | 14 | 0 s | 0% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 0.011 s | 100% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
workspacefunc>getStatObjectJ | subfunction | 14 | 0.011 s | 100.0% |  |
Self time (built-ins, overhead, etc.) | | | 0 s | 0% |  |
Totals | | | 0.011 s | 100% | |
Code Analyzer results
No Code Analyzer messages.Coverage results
[ Show coverage for parent directory ]
Total lines in function | 22 |
Non-code lines (comments, blank lines) | 2 |
Code lines (lines that can run) | 20 |
Code lines that did run | 11 |
Code lines that did not run | 9 |
Coverage (did run/can run) | 55.00 % |
Function listing
time calls line
395 function ret = getStatObjectsJ(vars, baseFunction, showNaNs, numelLimit)
396
4 397 w = warning('off', 'all');
4 398 ret = javaArray('java.lang.Object', length(vars));
4 399 for i = 1:length(vars)
14 400 var = vars{i};
14 401 if numel(var) > numelLimit
402 ret(i) = java.lang.String(sprintf('<Too many elements>'));
14 403 else
14 404 try
0.01 14 405 ret(i) = getStatObjectJ(var, baseFunction, showNaNs);
406 catch err %#ok<NASGU>
407 clazz = builtin('class', var);
408 if strcmp(clazz, 'int64') || strcmp(clazz, 'uint64')
409 ret(i) = num2complex('');
410 else
411 ret(i) = java.lang.String(sprintf('<Error displaying value>'));
412 end
413 end
14 414 end
14 415 end
4 416 warning(w);
Other subfunctions in this file are not included in this listing.