This is a static copy of a profile report

Home

framecut (9 calls, 2.306 sec)
Generated 05-Aug-2011 13:01:00 using cpu time.
function in file /home/LeechJ/cbass_analysis/reduc/framecut.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
read_arc>cutDesiredDatasubfunction1
createDirfunction1
plot_sourcesfunction4
calculateTaufunction3
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
38
d = framecutSub(d, indRx, indS...
91.935 s83.9%
41
d = mergestruct(d, buf);
90.306 s13.3%
32
[indReg, indServ, indRx] = det...
90.044 s1.9%
35
[d buf] = separate_fields(d);
90.011 s0.5%
25
field = whichField(d, ind);
80.011 s0.5%
All other lines  0 s0%
Totals  2.306 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
framecut>framecutSubsubfunction91.935 s83.9%
mergestructfunction90.306 s13.3%
framecut>determineIndsubfunction90.044 s1.9%
framecut>whichFieldsubfunction80.011 s0.5%
separate_fieldsfunction90.011 s0.5%
Self time (built-ins, overhead, etc.)  0 s0%
Totals  2.306 s100% 
Code Analyzer results
Line numberMessage
Coverage results
[ Show coverage for parent directory ]
Total lines in function42
Non-code lines (comments, blank lines)34
Code lines (lines that can run)8
Code lines that did run8
Code lines that did not run0
Coverage (did run/can run)100.00 %
Function listing
   time   calls  line
1 function d = framecut(d,ind, field)
2
3 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4 %
5 % function d = framecut(d,ind, field)
6 %
7 % cuts the data by frames according to an logical vector (ind)
8 % where 1s are kept and 0s are gotten rid of.
9 %
10 % as we know, some of our data is sampled at different rates,
11 % hence why we have to put the field argument to let us know
12 % which field to be using. basically there are 3 different
13 % sizes, corresponding to the following 'field' values:
14 % 'receiver' is sampled at 100Hz
15 % 'servo' is sampled at 5Hz
16 % 'regular' is sampled at 1Hz
17 %
18 % newer version determines which field to cut over.
19 %
20 % SJCM
21 %
22 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
23
9 24 if(nargin<3)
0.01 8 25 field = whichField(d, ind);
8 26 end
27
28 % we have reshaped things in read_arc.m, so we don't need to worry
29 % about needing to reshape.
30
31 % determine the corresponding inds for each data size
0.04 9 32 [indReg, indServ, indRx] = determineInd(d, ind, field);
33
34 % remove fields that we can't cut
0.01 9 35 [d buf] = separate_fields(d);
36
37 % cut them
1.93 9 38 d = framecutSub(d, indRx, indServ, indReg);
39
40 % add the ones back in
0.31 9 41 d = mergestruct(d, buf);
9 42 return;

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