MCPcopy Create free account
hub / github.com/apache/mesos / pong

Method pong

3rdparty/libprocess/src/tests/benchmarks.cpp:192–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190 }
191
192 void pong(const UPID& from, const string& body)
193 {
194 ++responses;
195
196 if (responses == totalRequests) {
197 duration->set(watch.elapsed());
198 duration.reset();
199 } else if (requests < totalRequests) {
200 send(server, "ping", message.c_str(), message.size());
201 ++requests;
202 }
203 }
204
205 // The address of the ponger (server).
206 UPID server;

Callers

nothing calls this directly

Calls 5

elapsedMethod · 0.80
sendFunction · 0.50
setMethod · 0.45
resetMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected