Skip to content

Commit

Permalink
Record INFER_RESPONSE_COMPLETE only at the first callback (triton-inf…
Browse files Browse the repository at this point in the history
  • Loading branch information
tanmayv25 authored Apr 7, 2022
1 parent 069aedf commit fa072e2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/grpc_server.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4299,8 +4299,10 @@ ModelStreamInferHandler::StreamInferResponseComplete(
<< state->cb_count_ << ", flags " << flags;

#ifdef TRITON_ENABLE_TRACING
state->trace_timestamps_.emplace_back(std::make_pair(
"INFER_RESPONSE_COMPLETE", TraceManager::CaptureTimestamp()));
if (state->cb_count_ == 1) {
state->trace_timestamps_.emplace_back(std::make_pair(
"INFER_RESPONSE_COMPLETE", TraceManager::CaptureTimestamp()));
}
#endif // TRITON_ENABLE_TRACING

// Log appropriate errors
Expand Down

0 comments on commit fa072e2

Please sign in to comment.