Track peak RAM in benchmarks
This commit is contained in:
parent
2dcd6af43f
commit
51844f5a98
@ -656,17 +656,15 @@ try
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
std::cout
|
||||
<< "Peak RAM: "
|
||||
<< std::setprecision(3)
|
||||
<< static_cast<double>(osrm::util::PeakRAMUsedInBytes()) / static_cast<double>((1024 * 1024))
|
||||
<< "MB"
|
||||
<< std::endl;
|
||||
std::cout << "Peak RAM: " << std::setprecision(3)
|
||||
<< static_cast<double>(osrm::util::PeakRAMUsedInBytes()) /
|
||||
static_cast<double>((1024 * 1024))
|
||||
<< "MB" << std::endl;
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
catch (const std::exception &e)
|
||||
{
|
||||
std::cerr << "Error: " << e.what() << std::endl;
|
||||
return EXIT_FAILURE;
|
||||
std::cerr << "Error: " << e.what() << std::endl;
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user