From f0d1e0abb16cad063641eca4de664be87a5b0d8a Mon Sep 17 00:00:00 2001 From: Simon Spinner <simon.spinner@uni-wuerzburg.de> Date: Wed, 1 Jun 2016 18:05:36 +0200 Subject: [PATCH] Fix unit of response time measurements to NANOSECONDS. --- .../agent/wildfly/service/ModelExtractionService.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools.descartes.prisma.agent.wildfly/src/main/java/tools/descartes/prisma/agent/wildfly/service/ModelExtractionService.java b/tools.descartes.prisma.agent.wildfly/src/main/java/tools/descartes/prisma/agent/wildfly/service/ModelExtractionService.java index 25d76ed..81bdfcb 100644 --- a/tools.descartes.prisma.agent.wildfly/src/main/java/tools/descartes/prisma/agent/wildfly/service/ModelExtractionService.java +++ b/tools.descartes.prisma.agent.wildfly/src/main/java/tools/descartes/prisma/agent/wildfly/service/ModelExtractionService.java @@ -618,12 +618,12 @@ public class ModelExtractionService extends AgentController implements Service<M incomingRecord.setThroughputSensor(inThroughputSensor); ComponentSensor<Time> inResponseTimeSensor = createSensor(StandardMetrics.RESPONSE_TIME, - Time.MILLISECONDS, Aggregation.CUMULATIVE_SUM, componentInstance, + Time.NANOSECONDS, Aggregation.CUMULATIVE_SUM, componentInstance, innerCallerProvidingRole, incomingSignature, null); inResponseTimeSensor = ModelSkeletonUtil.insert(skeleton.getSensors().getSensors(), inResponseTimeSensor); incomingRecord.setResponseTimeSensor(inResponseTimeSensor); - ComponentSensor<Time> inResidenceTimeSensor = createSensor(StandardMetrics.RESIDENCE_TIME, Time.MILLISECONDS, + ComponentSensor<Time> inResidenceTimeSensor = createSensor(StandardMetrics.RESIDENCE_TIME, Time.NANOSECONDS, Aggregation.CUMULATIVE_SUM, componentInstance, innerCallerProvidingRole, incomingSignature, null); inResidenceTimeSensor = ModelSkeletonUtil.insert(skeleton.getSensors().getSensors(), inResidenceTimeSensor); incomingRecord.setResidenceTimeSensor(inResidenceTimeSensor); @@ -635,7 +635,7 @@ public class ModelExtractionService extends AgentController implements Service<M outThroughputSensor = ModelSkeletonUtil.insert(skeleton.getSensors().getSensors(), outThroughputSensor); outgoingRecord.setThroughputSensor(outThroughputSensor); - ComponentSensor<Time> outResponseTimeSensor = createSensor(StandardMetrics.RESPONSE_TIME, Time.MILLISECONDS, + ComponentSensor<Time> outResponseTimeSensor = createSensor(StandardMetrics.RESPONSE_TIME, Time.NANOSECONDS, Aggregation.CUMULATIVE_SUM, componentInstance, innerCallerProvidingRole, incomingSignature, externalCall); outResponseTimeSensor = ModelSkeletonUtil.insert(skeleton.getSensors().getSensors(), outResponseTimeSensor); -- GitLab