| 41 | namespace xla { |
| 42 | |
| 43 | Status WithLogBacktrace(const Status& status) { |
| 44 | CHECK(!status.ok()); |
| 45 | VLOG(1) << status.ToString(); |
| 46 | VLOG(2) << tensorflow::CurrentStackTrace(); |
| 47 | return status; |
| 48 | } |
| 49 | |
| 50 | ScopedLoggingTimer::ScopedLoggingTimer(const std::string& label, bool enabled, |
| 51 | const char* file, int line, |
no test coverage detected