Add more details to the invoke call trace.

It is always useful information to know if the TPU invoke is Async or not, and if the GPU invoke on the old path or new path.
This can make it obvious in the perfetto trace.

PiperOrigin-RevId: 517162515
This commit is contained in:
MediaPipe Team
2023-03-16 10:37:32 -07:00
committed by Copybara-Service
parent 3b66ac0623
commit a9e956baa1
4 changed files with 16 additions and 2 deletions
@@ -141,7 +141,7 @@ InferenceCalculatorGlAdvancedImpl::GpuInferenceRunner::Process(
}
// Run inference.
{
MEDIAPIPE_PROFILING(GPU_TASK_INVOKE, cc);
MEDIAPIPE_PROFILING(GPU_TASK_INVOKE_ADVANCED, cc);
return tflite_gpu_runner_->Invoke();
}
}));