Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Kurilov committed Jan 7, 2017
1 parent 60c6b46 commit 94b0e47
Showing 1 changed file with 7 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -271,9 +271,7 @@ public final long getElapsedTime() {
}
//
@Override
public final synchronized void markSucc(
final long size, final long duration, final long latency
) {
public final void markSucc(final long size, final long duration, final long latency) {
throughputSuccess.mark();
reqBytes.mark(size);
if(duration > 0) {
Expand All @@ -287,9 +285,7 @@ public final synchronized void markSucc(
}
//
@Override
public final synchronized void markPartSucc(
final long size, final long duration, final long latency
) {
public final void markPartSucc(final long size, final long duration, final long latency) {
reqBytes.mark(size);
if(duration > 0) {
reqDuration.update(duration);
Expand All @@ -302,7 +298,7 @@ public final synchronized void markPartSucc(
}
//
@Override
public final synchronized void markSucc(
public final void markSucc(
final long count, final long bytes, final long durationValues[], final long latencyValues[]
) {
throughputSuccess.mark(count);
Expand All @@ -318,7 +314,7 @@ public final synchronized void markSucc(
}
//
@Override
public final synchronized void markPartSucc(
public final void markPartSucc(
final long bytes, final long durationValues[], final long latencyValues[]
) {
reqBytes.mark(bytes);
Expand All @@ -333,17 +329,17 @@ public final synchronized void markPartSucc(
}
//
@Override
public final synchronized void markFail() {
public final void markFail() {
throughputFail.mark();
}
//
@Override
public final synchronized void markFail(final long count) {
public final void markFail(final long count) {
throughputFail.mark(count);
}
//
@Override
public final synchronized Snapshot getSnapshot() {
public final Snapshot getSnapshot() {
final long currElapsedTime = tsStart > 0 ? System.currentTimeMillis() - tsStart : 0;
final com.codahale.metrics.Snapshot reqDurSnapshot = reqDuration.getSnapshot();
final com.codahale.metrics.Snapshot respLatSnapshot = respLatency.getSnapshot();
Expand Down

0 comments on commit 94b0e47

Please sign in to comment.