@@ -86,7 +86,7 @@ VarHandlePtr GRPCClient::AsyncSendVar(const std::string& ep,
86
86
// stub context
87
87
s->response_call_back_ = nullptr ;
88
88
89
- platform::RecordEvent record_event (method, p_ctx);
89
+ platform::RecordRPCEvent record_event (method, p_ctx);
90
90
91
91
auto call = s->stub_g_ .PrepareUnaryCall (
92
92
s->context_ .get (), " /sendrecv.SendRecvService/SendVariable" , req, &cq_);
@@ -143,7 +143,7 @@ VarHandlePtr GRPCClient::AsyncGetVar(const std::string& ep,
143
143
// stub context
144
144
s->response_call_back_ = ProcGetResponse;
145
145
146
- platform::RecordEvent record_event (method, p_ctx);
146
+ platform::RecordRPCEvent record_event (method, p_ctx);
147
147
148
148
auto call = s->stub_g_ .PrepareUnaryCall (
149
149
s->context_ .get (), " /sendrecv.SendRecvService/GetVariable" , buf, &cq_);
@@ -191,7 +191,7 @@ VarHandlePtr GRPCClient::AsyncPrefetchVar(const std::string& ep,
191
191
// stub context
192
192
s->response_call_back_ = ProcGetResponse;
193
193
194
- platform::RecordEvent record_event (method, p_ctx);
194
+ platform::RecordRPCEvent record_event (method, p_ctx);
195
195
196
196
auto call = s->stub_g_ .PrepareUnaryCall (
197
197
s->context_ .get (), " /sendrecv.SendRecvService/PrefetchVariable" , req,
@@ -221,7 +221,7 @@ VarHandlePtr GRPCClient::AsyncSendBatchBarrier(const std::string& ep,
221
221
sendrecv::VariableMessage req;
222
222
req.set_varname (BATCH_BARRIER_MESSAGE);
223
223
224
- platform::RecordEvent record_event (method, nullptr );
224
+ platform::RecordRPCEvent record_event (method, nullptr );
225
225
226
226
auto rpc = s->stub_ ->AsyncSendVariable (s->context_ .get (), req, &cq_);
227
227
rpc->Finish (&s->reply_ , &s->status_ , reinterpret_cast <void *>(s));
@@ -246,7 +246,7 @@ VarHandlePtr GRPCClient::AsyncSendFetchBarrier(const std::string& ep,
246
246
sendrecv::VariableMessage req;
247
247
req.set_varname (FETCH_BARRIER_MESSAGE);
248
248
249
- platform::RecordEvent record_event (method, nullptr );
249
+ platform::RecordRPCEvent record_event (method, nullptr );
250
250
251
251
auto rpc = s->stub_ ->AsyncGetVariable (s->context_ .get (), req, &cq_);
252
252
rpc->Finish (&s->reply_ , &s->status_ , reinterpret_cast <void *>(s));
@@ -271,7 +271,7 @@ VarHandlePtr GRPCClient::AsyncSendComplete(const std::string& ep,
271
271
sendrecv::VariableMessage req;
272
272
req.set_varname (COMPLETE_MESSAGE);
273
273
274
- platform::RecordEvent record_event (method, nullptr );
274
+ platform::RecordRPCEvent record_event (method, nullptr );
275
275
276
276
auto rpc = s->stub_ ->AsyncSendVariable (s->context_ .get (), req, &cq_);
277
277
rpc->Finish (&s->reply_ , &s->status_ , reinterpret_cast <void *>(s));
@@ -301,7 +301,7 @@ VarHandlePtr GRPCClient::AsyncCheckpointNotify(const std::string& ep,
301
301
req.set_varname (CHECKPOINT_SAVE_MESSAGE);
302
302
req.set_out_varname (dir);
303
303
304
- platform::RecordEvent record_event (method, nullptr );
304
+ platform::RecordRPCEvent record_event (method, nullptr );
305
305
306
306
auto rpc = s->stub_ ->AsyncCheckpointNotify (s->context_ .get (), req, &cq_);
307
307
rpc->Finish (&s->reply_ , &s->status_ , reinterpret_cast <void *>(s));
0 commit comments