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
Line Number | Code | Calls | Total Time | % Time | Time Plot |
13 | o = o.split_until_all_classes_... | 1 | 6.368 s | 96.4% | ![]() |
9 | samples = readInput(feature_fn... | 1 | 0.082 s | 1.2% | ![]() |
12 | o = Optimizer_cpu; | 1 | 0.076 s | 1.1% | ![]() |
6 | [type, dims] = cmxExtract_cpu(... | 1 | 0.032 s | 0.5% | ![]() |
16 | cmxWrite_cpu('classifier_P', g... | 1 | 0.031 s | 0.5% | ![]() |
All other lines | 0.016 s | 0.2% | ![]() | ||
Totals | 6.605 s | 100% |
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
...ll_classes_within_confidence_interval | class method | 1 | 6.367 s | 96.4% | ![]() |
AMoG_cpu>readInput | subfunction | 1 | 0.082 s | 1.2% | ![]() |
cmxWrite_cpu | function | 3 | 0.027 s | 0.4% | ![]() |
cmxExtract_cpu | function | 1 | 0.027 s | 0.4% | ![]() |
gather | function | 3 | 0.001 s | 0.0% | ![]() |
...er_cpu>Optimizer_cpu.Optimizer_cpu | function | 1 | 0.001 s | 0.0% | ![]() |
Self time (built-ins, overhead, etc.) | 0.101 s | 1.5% | ![]() | ||
Totals | 6.605 s | 100% |
Line number | Message |
6 | The value assigned here to 'type' appears to be unused. Consider replacing it by ~. |
Total lines in function | 20 |
Non-code lines (comments, blank lines) | 5 |
Code lines (lines that can run) | 15 |
Code lines that did run | 12 |
Code lines that did not run | 3 |
Coverage (did run/can run) | 80.00 % |
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.