| 289 | } |
| 290 | |
| 291 | Status TraceReplayer::ReplayDirectory(string directory) { |
| 292 | DCHECK(initialized_); |
| 293 | vector<string> trace_files; |
| 294 | RETURN_IF_ERROR( |
| 295 | SimpleLogger::GetLogFiles(move(directory), TRACE_FILE_PREFIX, &trace_files)); |
| 296 | for (const string& trace_file : trace_files) { |
| 297 | RETURN_IF_ERROR(ReplayFile(trace_file)); |
| 298 | } |
| 299 | return Status::OK(); |
| 300 | } |
| 301 | |
| 302 | void TraceReplayer::UpdateTraceStats(const TraceEvent& entry) { |
| 303 | switch (entry.type) { |