summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorBjørn Christian Seime <bjorncs@verizonmedia.com>2019-01-24 13:57:36 +0100
committerBjørn Christian Seime <bjorncs@verizonmedia.com>2019-01-24 13:57:36 +0100
commit78d6971061c382417d52104fc648ee55b1fc1e53 (patch)
treed3f7a902001e4f9f19bc3add97932299e5e47dce /config
parent9845bfcc1be9960efa47b0593f92189cec7b8a51 (diff)
Print jrt transport metrics as comment in output
Diffstat (limited to 'config')
-rw-r--r--config/src/main/java/com/yahoo/vespa/config/benchmark/LoadTester.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/config/src/main/java/com/yahoo/vespa/config/benchmark/LoadTester.java b/config/src/main/java/com/yahoo/vespa/config/benchmark/LoadTester.java
index a9bf1272133..c988413dbbb 100644
--- a/config/src/main/java/com/yahoo/vespa/config/benchmark/LoadTester.java
+++ b/config/src/main/java/com/yahoo/vespa/config/benchmark/LoadTester.java
@@ -1,4 +1,4 @@
-// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+// Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.config.benchmark;
import com.yahoo.collections.Tuple2;
@@ -7,6 +7,7 @@ import com.yahoo.jrt.Spec;
import com.yahoo.jrt.Supervisor;
import com.yahoo.jrt.Target;
import com.yahoo.jrt.Transport;
+import com.yahoo.jrt.TransportMetrics;
import com.yahoo.system.CommandLineParser;
import com.yahoo.vespa.config.ConfigDefinitionKey;
import com.yahoo.vespa.config.ConfigKey;
@@ -37,7 +38,7 @@ import java.util.concurrent.ThreadLocalRandom;
* <p>
* Log messages from a run will have a # first in the line, the end result will not.
*
- * @author vegardh
+ * @author Vegard Havdal
*/
public class LoadTester {
@@ -130,6 +131,7 @@ public class LoadTester {
sb.append((metrics.maxLatency)).append(",");
sb.append((metrics.failedRequests));
sb.append("\n");
+ sb.append('#').append(TransportMetrics.getInstance().snapshot().toString()).append('\n');
System.out.println(sb.toString());
}