This is a static copy of a profile report

Home

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)

Function NameFunction TypeCalls
workspacefuncfunction4
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
405
ret(i) = getStatObjectJ(var, b...
140.011 s100.0%
416
warning(w);
40 s0%
415
end
140 s0%
414
end
140 s0%
404
try
140 s0%
All other lines  0 s0%
Totals  0.011 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
workspacefunc>getStatObjectJsubfunction140.011 s100.0%
Self time (built-ins, overhead, etc.)  0 s0%
Totals  0.011 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
[ Show coverage for parent directory ]
Total lines in function22
Non-code lines (comments, blank lines)2
Code lines (lines that can run)20
Code lines that did run11
Code lines that did not run9
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.