| 45 | } |
| 46 | |
| 47 | Status Profiler::SerializeToString(string* content) { |
| 48 | if (!content) { |
| 49 | return Status(error::Code::INVALID_ARGUMENT, |
| 50 | "Cannot use null string pointer for SerializeToString."); |
| 51 | } |
| 52 | stats_->SerializeToString(content); |
| 53 | return Status::OK(); |
| 54 | } |
| 55 | |
| 56 | } // namespace tfprof |
| 57 | } // namespace tensorflow |