This is a static copy of a profile report

Home

AMoG_cpu>readInput (Calls: 1, Time: 0.082 sec)
Generated 28-May-2016 14:58:45 using performance time.
subfunction in file /home/johs/work/clustering/src/AMoG_cpu.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
AMoG_cpufunction1
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
27
all_samples = fread(fp, nsampl...
30.075 s92.4%
28
samples(i,:) = all_samples(1:C...
30.001 s1.8%
23
C = config_cpu();
10.001 s1.5%
26
fp = fopen(feature_fns{i}, 'r'...
30.001 s1.0%
29
fclose(fp);
30.001 s0.7%
All other lines  0.002 s2.6%
Totals  0.082 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
config_cpufunction10.001 s1.0%
Self time (built-ins, overhead, etc.)  0.081 s99.0%
Totals  0.082 s100% 
Code Analyzer results
Line numberMessage
Coverage results
Show coverage for parent directory
Total lines in function10
Non-code lines (comments, blank lines)1
Code lines (lines that can run)9
Code lines that did run9
Code lines that did not run0
Coverage (did run/can run)100.00 %
Function listing
time 
Calls 
 line
  22 
function [samples] = readInput(feature_fns, nfeature, nsample)
< 0.01 
      1 
  23 
    C = config_cpu(); 
< 0.01 
      1 
  24 
	samples = zeros(nfeature,ceil(nsample/C.SUBSAMPLE), 'single'); 
< 0.01 
      1 
  25 
	for i = 1:nfeature 
< 0.01 
      3 
  26 
		fp = fopen(feature_fns{i}, 'r'); 
  0.08 
      3 
  27 
        all_samples = fread(fp, nsample, 'float32'); 
< 0.01 
      3 
  28 
		samples(i,:) = all_samples(1:C.SUBSAMPLE:nsample); 
< 0.01 
      3 
  29 
		fclose(fp); 
< 0.01 
      3 
  30 
	end 
< 0.01 
      1 
  31 
end