| 128 | } |
| 129 | |
| 130 | Status TraceFileIterator::Init() { |
| 131 | boost::filesystem::path file_path(filename_); |
| 132 | if (!boost::filesystem::exists(file_path)) { |
| 133 | return Status(Substitute("Trace file does not exist: $0", filename_)); |
| 134 | } |
| 135 | stream_.open(filename_); |
| 136 | initialized_ = true; |
| 137 | return Status::OK(); |
| 138 | } |
| 139 | |
| 140 | Status TraceFileIterator::GetNextEvent(TraceEvent* event, bool* done) { |
| 141 | string line; |