MCPcopy Create free account
hub / github.com/apache/impala / postRead

Method postRead

be/src/rpc/rpc-trace.cc:275–280  ·  view source on GitHub ↗

postRead callback occurs after RPC read completes

Source from the content-addressed store, hash-verified

273
274// postRead callback occurs after RPC read completes
275void RpcEventHandler::postRead(void* ctx, const char* fn_name, uint32_t bytes) {
276 InvocationContext* rpc_ctx = reinterpret_cast<InvocationContext*>(ctx);
277 rpc_ctx->read_end_us = GetMonoTimeMicros();
278 int64_t elapsed_time = rpc_ctx->read_end_us - rpc_ctx->start_time_us;
279 rpc_ctx->method_descriptor->read_time_distribution->Update(elapsed_time);
280}
281
282// preWrite callback occurs before RPC read starts
283void RpcEventHandler::preWrite(void* ctx, const char* fn_name) {

Callers

nothing calls this directly

Calls 2

GetMonoTimeMicrosFunction · 0.85
UpdateMethod · 0.45

Tested by

no test coverage detected