This is a static copy of a profile report

Home

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

Parents (calling functions)
No parent
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
13
o = o.split_until_all_classes_...
16.368 s96.4%
9
samples = readInput(feature_fn...
10.082 s1.2%
12
o = Optimizer_cpu;
10.076 s1.1%
6
[type, dims] = cmxExtract_cpu(...
10.032 s0.5%
16
cmxWrite_cpu('classifier_P', g...
10.031 s0.5%
All other lines  0.016 s0.2%
Totals  6.605 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
...ll_classes_within_confidence_intervalclass method16.367 s96.4%
AMoG_cpu>readInputsubfunction10.082 s1.2%
cmxWrite_cpufunction30.027 s0.4%
cmxExtract_cpufunction10.027 s0.4%
gatherfunction30.001 s0.0%
...er_cpu>Optimizer_cpu.Optimizer_cpufunction10.001 s0.0%
Self time (built-ins, overhead, etc.)  0.101 s1.5%
Totals  6.605 s100% 
Code Analyzer results
Line numberMessage
6The value assigned here to 'type' appears to be unused. Consider replacing it by ~.
Coverage results
Show coverage for parent directory
Total lines in function20
Non-code lines (comments, blank lines)5
Code lines (lines that can run)15
Code lines that did run12
Code lines that did not run3
Coverage (did run/can run)80.00 %
Function listing
time 
Calls 
 line
   1 
function [] = AMoG_cpu(feature_fns)
   2 
	tic;
   3 
	profile on;
   4 

< 0.01 
      1 
   5 
	nfeature = numel(feature_fns); 
  0.03 
      1 
   6 
	[type, dims] = cmxExtract_cpu(feature_fns{1}); 
< 0.01 
      1 
   7 
	nsample = prod(dims); 
   8 

  0.08 
      1 
   9 
	samples = readInput(feature_fns, nfeature, nsample); 
  10 

< 0.01 
      1 
  11 
	tAMoG = toc; 
  0.08 
      1 
  12 
    o = Optimizer_cpu; 
  6.37 
      1 
  13 
	o = o.split_until_all_classes_within_confidence_interval(samples); 
< 0.01 
      1 
  14 
	fprintf('%-10s %10.6f %10.6f\n', 'AMOG', tAMoG, toc); 
  15 

  0.03 
      1 
  16 
    cmxWrite_cpu('classifier_P', gather(o.P), 'float32'); 
< 0.01 
      1 
  17 
    cmxWrite_cpu('classifier_mu', gather(o.mu), 'float32'); 
< 0.01 
      1 
  18 
    cmxWrite_cpu('classifier_Sigma', gather(o.Sigma), 'float32'); 
< 0.01 
      1 
  19 
	profsave 
  20 
end

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