Mercurial > stress-tester
changeset 454:8c8853c216fe
metrics formatting
author | Devel 1 |
---|---|
date | Tue, 01 Aug 2017 10:42:12 +0200 |
parents | 1fadccfcb2db |
children | c9f06c2ca729 |
files | stress-tester/src/main/java/com/passus/st/Main.java stress-tester/src/main/java/com/passus/st/client/http/HttpClientMetric.java |
diffstat | 2 files changed, 8 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/stress-tester/src/main/java/com/passus/st/Main.java Tue Aug 01 09:22:48 2017 +0200 +++ b/stress-tester/src/main/java/com/passus/st/Main.java Tue Aug 01 10:42:12 2017 +0200 @@ -70,7 +70,7 @@ } System.out.println("Metrics:"); - String line = "%30s: %s\n"; + String line = "%24s: %s\n"; for (Metric metric : metrics) { System.out.println(metric.getName() + ":"); Map<String, Serializable> valuesMap = metric.getAttributesValue();
--- a/stress-tester/src/main/java/com/passus/st/client/http/HttpClientMetric.java Tue Aug 01 09:22:48 2017 +0200 +++ b/stress-tester/src/main/java/com/passus/st/client/http/HttpClientMetric.java Tue Aug 01 10:42:12 2017 +0200 @@ -47,15 +47,15 @@ public HttpClientMetric(String name) { Assert.notNull(name, "name"); this.name = name; - attrs.put("requestsNum", requestsNum); - attrs.put("responsesNum", responsesNum); + attrs.put("requests", requestsNum); + attrs.put("responses", responsesNum); //attrs.put("requestsUrl", reqUrls); attrs.put("responseStatusCodes", respStatuses); - attrs.put("responseTimeHistogram", responseTimeHistogram); - attrs.put("requestSendingTimeHistogram", requestSendingTimeHistogram); - attrs.put("responseReceivingTimeHistogram", responseReceivingTimeHistogram); - attrs.put("requestSizeHistogram", requestSizeHistogram); - attrs.put("responseSizeHistogram", responseSizeHistogram); + attrs.put("responseTimeDist", responseTimeHistogram); + attrs.put("requestSendTimeDist", requestSendingTimeHistogram); + attrs.put("responseRecvTimeDist", responseReceivingTimeHistogram); + attrs.put("requestSizeDist", requestSizeHistogram); + attrs.put("responseSizeDist", responseSizeHistogram); } @Override