cmxWrite_cpu (Calls: 3, Time: 0.027 sec)
Generated 28-May-2016 14:58:48 using performance time.
function in file /home/johs/work/clustering/src/cmxWrite_cpu.m
Copy to new window for comparing multiple runs
Function Name | Function Type | Calls |
AMoG_cpu | function | 3 |
Line Number | Code | Calls | Total Time | % Time | Time Plot |
2 | filename = [basename, cmxCreat... | 3 | 0.024 s | 88.8% | ![]() |
3 | fp = fopen(filename, 'w'); | 3 | 0.001 s | 3.7% | ![]() |
5 | fclose(fp); | 3 | 0.001 s | 2.8% | ![]() |
4 | fwrite(fp, A, type); | 3 | 0.000 s | 1.5% | ![]() |
6 | end | 3 | 0.000 s | 0.0% | ![]() |
All other lines | 0.001 s | 3.2% | ![]() | ||
Totals | 0.027 s | 100% |
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
cmxCreate_cpu | function | 3 | 0.021 s | 77.5% | ![]() |
Self time (built-ins, overhead, etc.) | 0.006 s | 22.5% | ![]() | ||
Totals | 0.027 s | 100% |
Total lines in function | 6 |
Non-code lines (comments, blank lines) | 1 |
Code lines (lines that can run) | 5 |
Code lines that did run | 5 |
Code lines that did not run | 0 |
Coverage (did run/can run) | 100.00 % |
time | Calls | line | |
---|---|---|---|
1 | function [] = cmxWrite_cpu(basename, A, type) | ||
0.02 | 3 | 2 | filename = [basename, cmxCreate_cpu(type, size(A))]; |
< 0.01 | 3 | 3 | fp = fopen(filename, 'w'); |
< 0.01 | 3 | 4 | fwrite(fp, A, type); |
< 0.01 | 3 | 5 | fclose(fp); |
< 0.01 | 3 | 6 | end |