Log some memory usage statistics after preprocessing tasks.
This commit is contained in:
committed by
Patrick Niklaus
parent
98659fb0a0
commit
f88f51fd98
@@ -15,6 +15,8 @@
|
||||
#include <new>
|
||||
#include <ostream>
|
||||
|
||||
#include "util/meminfo.hpp"
|
||||
|
||||
using namespace osrm;
|
||||
|
||||
enum class return_code : unsigned
|
||||
@@ -166,7 +168,11 @@ int main(int argc, char *argv[]) try
|
||||
|
||||
tbb::task_scheduler_init init(contractor_config.requested_num_threads);
|
||||
|
||||
return contractor::Contractor(contractor_config).Run();
|
||||
auto exitcode = contractor::Contractor(contractor_config).Run();
|
||||
|
||||
util::DumpMemoryStats();
|
||||
|
||||
return exitcode;
|
||||
}
|
||||
catch (const std::bad_alloc &e)
|
||||
{
|
||||
|
||||
@@ -13,6 +13,8 @@
|
||||
#include <exception>
|
||||
#include <new>
|
||||
|
||||
#include "util/meminfo.hpp"
|
||||
|
||||
using namespace osrm;
|
||||
|
||||
enum class return_code : unsigned
|
||||
@@ -153,7 +155,11 @@ int main(int argc, char *argv[]) try
|
||||
// setup scripting environment
|
||||
extractor::LuaScriptingEnvironment scripting_environment(
|
||||
extractor_config.profile_path.string().c_str());
|
||||
return extractor::Extractor(extractor_config).run(scripting_environment);
|
||||
auto exitcode = extractor::Extractor(extractor_config).run(scripting_environment);
|
||||
|
||||
util::DumpMemoryStats();
|
||||
|
||||
return exitcode;
|
||||
}
|
||||
catch (const std::bad_alloc &e)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user