blob: a488db59df0f71d1c25deeff1ffa41f9935aabc9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
package org.linaro.iasenov.benchmarkframework;
import android.util.Log;
/**
* Created by iasenov on 8/24/16.
*/
public class Test3 extends BaseBenchmark{
private String TAG = "cbench";
public String startBenchmark(int count)
{
version = " Libc-Bench 1.1";
benchmarkName = "Test3";
executable_name = "cbench";
integrationType = "EX";
chartName = "Linaro-Libc-Bench";
clear();
startTest = System.currentTimeMillis();
String param = "";
TESTCOMMANDS = getCommands(executable_name, benchmarkName);
xout[2] = copyAssetsExecFileAndRun(executable_name, TESTCOMMANDS);
endTest = System.currentTimeMillis();
sendElapsedTimeToChart();
submitElapsedTime(endTest-startTest);
return benchmarkName + ":" + getBenchmarkResult(5, integrationType);
}
public boolean stopBenchmark(){
process_exec.destroy();
Log.i(TAG, "Destroy Process:"+process_exec.toString());
return true;
}
}
|