MCPcopy Create free account
hub / github.com/apache/tomcat / printSendStats

Method printSendStats

test/org/apache/catalina/tribes/demos/LoadTest.java:79–86  ·  view source on GitHub ↗
(long counter, int messageSize)

Source from the content-addressed store, hash-verified

77 }
78
79 private static void printSendStats(long counter, int messageSize) {
80 float cnt = counter;
81 float size = messageSize;
82 float time = (System.currentTimeMillis() - messageStartSendTime) / 1000f;
83 log.info("****SEND STATS-" + Thread.currentThread().getName() + "*****" + "\n\tMessage count:" + counter +
84 "\n\tTotal bytes :" + (long) (size * cnt) + "\n\tTotal seconds:" + (time) + "\n\tBytes/second :" +
85 (size * cnt / time) + "\n\tMBytes/second:" + (size * cnt / time / 1024f / 1024f));
86 }
87
88
89 public LoadTest(ManagedChannel channel, boolean send, int msgCount, boolean debug, long pause, int stats,

Callers 1

runMethod · 0.95

Calls 2

infoMethod · 0.65
getNameMethod · 0.65

Tested by

no test coverage detected