diff options
author | Bjørn Christian Seime <bjorn.christian@seime.no> | 2019-01-24 15:22:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-24 15:22:05 +0100 |
commit | 1ed75a5681fc19966fdb1940f3f55e6c8f5c2c76 (patch) | |
tree | 9ee4a804296cd27e2ba59990fd22c414a8b57a75 | |
parent | 35c2119a264d7eed627c86278dd4c2ed85bec35f (diff) | |
parent | 78d6971061c382417d52104fc648ee55b1fc1e53 (diff) |
Merge pull request #8224 from vespa-engine/bjorncs/config-loadtester
Print JRT transport metrics as comment in output
-rw-r--r-- | config/src/main/java/com/yahoo/vespa/config/benchmark/LoadTester.java | 6 |
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()); } |