| 72 | } |
| 73 | |
| 74 | bool GpuTimer::Start(GpuStream* stream) { |
| 75 | port::Status status = GpuDriver::RecordEvent( |
| 76 | parent_->gpu_context(), start_event_, stream->gpu_stream()); |
| 77 | if (!status.ok()) { |
| 78 | LOG(ERROR) << status; |
| 79 | } |
| 80 | return status.ok(); |
| 81 | } |
| 82 | |
| 83 | bool GpuTimer::Stop(GpuStream* stream) { |
| 84 | port::Status status = GpuDriver::RecordEvent( |
no test coverage detected