| 222 | } |
| 223 | |
| 224 | static std::filesystem::path DumpFramePath(const BenchmarkOptions& options, |
| 225 | const std::string& row_name, |
| 226 | int frame_number) { |
| 227 | std::filesystem::path row_dir = std::filesystem::path(options.dump_dir) / row_name; |
| 228 | std::filesystem::create_directories(row_dir); |
| 229 | std::ostringstream filename; |
| 230 | filename << "frame-" << std::setw(6) << std::setfill('0') << frame_number << ".png"; |
| 231 | return row_dir / filename.str(); |
| 232 | } |
| 233 | |
| 234 | static void SaveDumpImage(const BenchmarkOptions& options, |
| 235 | const std::string& row_name, |