report throughput on screen if verbose mode
This commit is contained in:
parent
8163cc5ad7
commit
21afb1c506
|
|
@ -37,7 +37,7 @@
|
||||||
<ConfirmationsSetting value="0" id="Add" />
|
<ConfirmationsSetting value="0" id="Add" />
|
||||||
<ConfirmationsSetting value="0" id="Remove" />
|
<ConfirmationsSetting value="0" id="Remove" />
|
||||||
</component>
|
</component>
|
||||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" assert-keyword="true" jdk-15="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
|
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" assert-keyword="true" jdk-15="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
|
||||||
<output url="file://$PROJECT_DIR$/build/classes" />
|
<output url="file://$PROJECT_DIR$/build/classes" />
|
||||||
</component>
|
</component>
|
||||||
<component name="ProjectType">
|
<component name="ProjectType">
|
||||||
|
|
|
||||||
|
|
@ -66,14 +66,6 @@
|
||||||
<sourceFolder url="file://$MODULE_DIR$/src/main/jni" isTestSource="false" />
|
<sourceFolder url="file://$MODULE_DIR$/src/main/jni" isTestSource="false" />
|
||||||
<sourceFolder url="file://$MODULE_DIR$/src/main/rs" isTestSource="false" />
|
<sourceFolder url="file://$MODULE_DIR$/src/main/rs" isTestSource="false" />
|
||||||
<sourceFolder url="file://$MODULE_DIR$/src/main/shaders" isTestSource="false" />
|
<sourceFolder url="file://$MODULE_DIR$/src/main/shaders" isTestSource="false" />
|
||||||
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/res" type="java-test-resource" />
|
|
||||||
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/resources" type="java-test-resource" />
|
|
||||||
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/assets" type="java-test-resource" />
|
|
||||||
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/aidl" isTestSource="true" />
|
|
||||||
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/java" isTestSource="true" />
|
|
||||||
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/jni" isTestSource="true" />
|
|
||||||
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/rs" isTestSource="true" />
|
|
||||||
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/shaders" isTestSource="true" />
|
|
||||||
<sourceFolder url="file://$MODULE_DIR$/src/test/res" type="java-test-resource" />
|
<sourceFolder url="file://$MODULE_DIR$/src/test/res" type="java-test-resource" />
|
||||||
<sourceFolder url="file://$MODULE_DIR$/src/test/resources" type="java-test-resource" />
|
<sourceFolder url="file://$MODULE_DIR$/src/test/resources" type="java-test-resource" />
|
||||||
<sourceFolder url="file://$MODULE_DIR$/src/test/assets" type="java-test-resource" />
|
<sourceFolder url="file://$MODULE_DIR$/src/test/assets" type="java-test-resource" />
|
||||||
|
|
@ -82,6 +74,14 @@
|
||||||
<sourceFolder url="file://$MODULE_DIR$/src/test/jni" isTestSource="true" />
|
<sourceFolder url="file://$MODULE_DIR$/src/test/jni" isTestSource="true" />
|
||||||
<sourceFolder url="file://$MODULE_DIR$/src/test/rs" isTestSource="true" />
|
<sourceFolder url="file://$MODULE_DIR$/src/test/rs" isTestSource="true" />
|
||||||
<sourceFolder url="file://$MODULE_DIR$/src/test/shaders" isTestSource="true" />
|
<sourceFolder url="file://$MODULE_DIR$/src/test/shaders" isTestSource="true" />
|
||||||
|
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/res" type="java-test-resource" />
|
||||||
|
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/resources" type="java-test-resource" />
|
||||||
|
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/assets" type="java-test-resource" />
|
||||||
|
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/aidl" isTestSource="true" />
|
||||||
|
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/java" isTestSource="true" />
|
||||||
|
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/jni" isTestSource="true" />
|
||||||
|
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/rs" isTestSource="true" />
|
||||||
|
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/shaders" isTestSource="true" />
|
||||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/assets" />
|
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/assets" />
|
||||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/blame" />
|
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/blame" />
|
||||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/builds" />
|
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/builds" />
|
||||||
|
|
|
||||||
|
|
@ -83,19 +83,21 @@ class Thread_TX_CNormal implements Runnable {
|
||||||
stdout = stdout_buf.readLine();
|
stdout = stdout_buf.readLine();
|
||||||
duration = Utilities.parseBinOutput(stdout);
|
duration = Utilities.parseBinOutput(stdout);
|
||||||
MainActivity.reportedFinishTime = duration;
|
MainActivity.reportedFinishTime = duration;
|
||||||
if (MainActivity.isVerbose) {
|
|
||||||
MainActivity.myHandler.post(new Runnable() {
|
|
||||||
@Override
|
|
||||||
public void run() {
|
|
||||||
MainActivity.txt_results.append(
|
|
||||||
"Sent " + sentBytes + "bytes in " + duration + "s\n");
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
// throughput
|
// throughput
|
||||||
stdout = stdout_buf.readLine();
|
stdout = stdout_buf.readLine();
|
||||||
throughput = Utilities.parseBinOutput(stdout);
|
throughput = Utilities.parseBinOutput(stdout);
|
||||||
|
|
||||||
|
if (MainActivity.isVerbose) {
|
||||||
|
MainActivity.myHandler.post(new Runnable() {
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
|
MainActivity.txt_results.append("Sent " + sentBytes +
|
||||||
|
"bytes in " + duration +
|
||||||
|
"s (" +throughput/Utilities.oneMB +"Mbps)\n");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stdout_buf.close();
|
stdout_buf.close();
|
||||||
|
|
|
||||||
|
|
@ -84,19 +84,21 @@ class Thread_TX_CNormalUDP implements Runnable {
|
||||||
stdout = stdout_buf.readLine();
|
stdout = stdout_buf.readLine();
|
||||||
duration = Utilities.parseBinOutput(stdout);
|
duration = Utilities.parseBinOutput(stdout);
|
||||||
MainActivity.reportedFinishTime = duration;
|
MainActivity.reportedFinishTime = duration;
|
||||||
if (MainActivity.isVerbose) {
|
|
||||||
MainActivity.myHandler.post(new Runnable() {
|
|
||||||
@Override
|
|
||||||
public void run() {
|
|
||||||
MainActivity.txt_results.append(
|
|
||||||
"Sent " + sentBytes + "bytes in " + duration + "s\n");
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
// throughput
|
// throughput
|
||||||
stdout = stdout_buf.readLine();
|
stdout = stdout_buf.readLine();
|
||||||
throughput = Utilities.parseBinOutput(stdout);
|
throughput = Utilities.parseBinOutput(stdout);
|
||||||
|
|
||||||
|
if (MainActivity.isVerbose) {
|
||||||
|
MainActivity.myHandler.post(new Runnable() {
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
|
MainActivity.txt_results.append("Sent " + sentBytes +
|
||||||
|
"bytes in " + duration +
|
||||||
|
"s (" +throughput/Utilities.oneMB +"Mbps)\n");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (IOException | InterruptedException e) {
|
} catch (IOException | InterruptedException e) {
|
||||||
|
|
|
||||||
|
|
@ -81,19 +81,21 @@ class Thread_TX_CRawNormal implements Runnable {
|
||||||
stdout = stdout_buf.readLine();
|
stdout = stdout_buf.readLine();
|
||||||
duration = Utilities.parseBinOutput(stdout);
|
duration = Utilities.parseBinOutput(stdout);
|
||||||
MainActivity.reportedFinishTime = duration;
|
MainActivity.reportedFinishTime = duration;
|
||||||
if (MainActivity.isVerbose) {
|
|
||||||
MainActivity.myHandler.post(new Runnable() {
|
|
||||||
@Override
|
|
||||||
public void run() {
|
|
||||||
MainActivity.txt_results.append(
|
|
||||||
"Sent " + sentBytes + "bytes in " + duration + "s\n");
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
// throughput
|
// throughput
|
||||||
stdout = stdout_buf.readLine();
|
stdout = stdout_buf.readLine();
|
||||||
throughput = Utilities.parseBinOutput(stdout);
|
throughput = Utilities.parseBinOutput(stdout);
|
||||||
|
|
||||||
|
if (MainActivity.isVerbose) {
|
||||||
|
MainActivity.myHandler.post(new Runnable() {
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
|
MainActivity.txt_results.append("Sent " + sentBytes +
|
||||||
|
"bytes in " + duration +
|
||||||
|
"s (" +throughput/Utilities.oneMB +"Mbps)\n");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (IOException | InterruptedException e) {
|
} catch (IOException | InterruptedException e) {
|
||||||
|
|
|
||||||
|
|
@ -77,19 +77,21 @@ class Thread_TX_CRawSplice implements Runnable {
|
||||||
stdout = stdout_buf.readLine();
|
stdout = stdout_buf.readLine();
|
||||||
duration = Utilities.parseBinOutput(stdout);
|
duration = Utilities.parseBinOutput(stdout);
|
||||||
MainActivity.reportedFinishTime = duration;
|
MainActivity.reportedFinishTime = duration;
|
||||||
if (MainActivity.isVerbose) {
|
|
||||||
MainActivity.myHandler.post(new Runnable() {
|
|
||||||
@Override
|
|
||||||
public void run() {
|
|
||||||
MainActivity.txt_results.append(
|
|
||||||
"Sent " + sentBytes + "bytes in " + duration + "s\n");
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
// throughput
|
// throughput
|
||||||
stdout = stdout_buf.readLine();
|
stdout = stdout_buf.readLine();
|
||||||
throughput = Utilities.parseBinOutput(stdout);
|
throughput = Utilities.parseBinOutput(stdout);
|
||||||
|
|
||||||
|
if (MainActivity.isVerbose) {
|
||||||
|
MainActivity.myHandler.post(new Runnable() {
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
|
MainActivity.txt_results.append("Sent " + sentBytes +
|
||||||
|
"bytes in " + duration +
|
||||||
|
"s (" +throughput/Utilities.oneMB +"Mbps)\n");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (IOException | InterruptedException e) {
|
} catch (IOException | InterruptedException e) {
|
||||||
|
|
|
||||||
|
|
@ -81,19 +81,21 @@ class Thread_TX_CSendfile implements Runnable {
|
||||||
stdout = stdout_buf.readLine();
|
stdout = stdout_buf.readLine();
|
||||||
duration = Utilities.parseBinOutput(stdout);
|
duration = Utilities.parseBinOutput(stdout);
|
||||||
MainActivity.reportedFinishTime = duration;
|
MainActivity.reportedFinishTime = duration;
|
||||||
if (MainActivity.isVerbose) {
|
|
||||||
MainActivity.myHandler.post(new Runnable() {
|
|
||||||
@Override
|
|
||||||
public void run() {
|
|
||||||
MainActivity.txt_results.append(
|
|
||||||
"Sent " + sentBytes + "bytes in " + duration + "s\n");
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
// throughput
|
// throughput
|
||||||
stdout = stdout_buf.readLine();
|
stdout = stdout_buf.readLine();
|
||||||
throughput = Utilities.parseBinOutput(stdout);
|
throughput = Utilities.parseBinOutput(stdout);
|
||||||
|
|
||||||
|
if (MainActivity.isVerbose) {
|
||||||
|
MainActivity.myHandler.post(new Runnable() {
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
|
MainActivity.txt_results.append("Sent " + sentBytes +
|
||||||
|
"bytes in " + duration +
|
||||||
|
"s (" +throughput/Utilities.oneMB +"Mbps)\n");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (IOException | InterruptedException e) {
|
} catch (IOException | InterruptedException e) {
|
||||||
|
|
|
||||||
|
|
@ -80,20 +80,21 @@ class Thread_TX_CSplice implements Runnable {
|
||||||
// duration
|
// duration
|
||||||
stdout = stdout_buf.readLine();
|
stdout = stdout_buf.readLine();
|
||||||
duration = Utilities.parseBinOutput(stdout);
|
duration = Utilities.parseBinOutput(stdout);
|
||||||
MainActivity.reportedFinishTime = duration;
|
|
||||||
if (MainActivity.isVerbose) {
|
|
||||||
MainActivity.myHandler.post(new Runnable() {
|
|
||||||
@Override
|
|
||||||
public void run() {
|
|
||||||
MainActivity.txt_results.append(
|
|
||||||
"Sent " + sentBytes + "bytes in " + duration + "s\n");
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
// throughput
|
// throughput
|
||||||
stdout = stdout_buf.readLine();
|
stdout = stdout_buf.readLine();
|
||||||
throughput = Utilities.parseBinOutput(stdout);
|
throughput = Utilities.parseBinOutput(stdout);
|
||||||
|
|
||||||
|
if (MainActivity.isVerbose) {
|
||||||
|
MainActivity.myHandler.post(new Runnable() {
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
|
MainActivity.txt_results.append("Sent " + sentBytes +
|
||||||
|
"bytes in " + duration +
|
||||||
|
"s (" +throughput/Utilities.oneMB +"Mbps)\n");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (IOException | InterruptedException e) {
|
} catch (IOException | InterruptedException e) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue