This is a static copy of a profile report

Home

region_seg>sussman (234500 calls, 34274.138 sec)
Generated 05-Nov-2014 07:52:53 using cpu time.
subfunction in file /usr0/home/jenkins/workspace/cellorganizer-demo3D11-glnx64/utilities/preprocessing/3D/ashariff/region_seg.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
region_segfunction234500
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
282
dD(D_pos_ind) = sqrt(max(a_p(D...
23450010134.738 s29.6%
262
c = D - shiftD(D); % backward
2345003686.008 s10.8%
263
d = shiftU(D) - D; % forward
2345003668.354 s10.7%
287
D = D - dt .* sussman_sign(D) ...
2345003429.644 s10.0%
260
a = D - shiftR(D); % backward
2345001373.370 s4.0%
All other lines  11982.024 s35.0%
Totals  34274.138 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
region_seg>shiftDsubfunction2345003458.474 s10.1%
region_seg>shiftUsubfunction2345003441.681 s10.0%
region_seg>sussman_signsubfunction2345002540.865 s7.4%
region_seg>shiftRsubfunction2345001148.829 s3.4%
region_seg>shiftLsubfunction2345001132.176 s3.3%
Self time (built-ins, overhead, etc.)  22552.114 s65.8%
Totals  34274.138 s100% 
Code Analyzer results
Line numberMessage
Coverage results
[ Show coverage for parent directory ]
Total lines in function30
Non-code lines (comments, blank lines)8
Code lines (lines that can run)22
Code lines that did run22
Code lines that did not run0
Coverage (did run/can run)100.00 %
Function listing
   time   calls  line
258 function D = sussman(D, dt)
259 % forward/backward differences
1373.37 234500 260 a = D - shiftR(D); % backward
1360.09 234500 261 b = shiftL(D) - D; % forward
3686.01 234500 262 c = D - shiftD(D); % backward
3668.35 234500 263 d = shiftU(D) - D; % forward
264
1.88 234500 265 a_p = a; a_n = a; % a+ and a-
0.96 234500 266 b_p = b; b_n = b;
0.81 234500 267 c_p = c; c_n = c;
1.28 234500 268 d_p = d; d_n = d;
269
967.41 234500 270 a_p(a < 0) = 0;
948.01 234500 271 a_n(a > 0) = 0;
973.81 234500 272 b_p(b < 0) = 0;
954.88 234500 273 b_n(b > 0) = 0;
1016.50 234500 274 c_p(c < 0) = 0;
993.45 234500 275 c_n(c > 0) = 0;
1021.43 234500 276 d_p(d < 0) = 0;
996.77 234500 277 d_n(d > 0) = 0;
278
420.53 234500 279 dD = zeros(size(D));
618.15 234500 280 D_neg_ind = find(D < 0);
949.31 234500 281 D_pos_ind = find(D > 0);
10134.74 234500 282 dD(D_pos_ind) = sqrt(max(a_p(D_pos_ind).^2, b_n(D_pos_ind).^2) ...
283 + max(c_p(D_pos_ind).^2, d_n(D_pos_ind).^2)) - 1;
738.53 234500 284 dD(D_neg_ind) = sqrt(max(a_n(D_neg_ind).^2, b_p(D_neg_ind).^2) ...
285 + max(c_n(D_neg_ind).^2, d_p(D_neg_ind).^2)) - 1;
286
3429.64 234500 287 D = D - dt .* sussman_sign(D) .* dD;

Other subfunctions in this file are not included in this listing.