Dump memory usage stats after partitioning.
This commit is contained in:
committed by
Patrick Niklaus
parent
b789da45bd
commit
b62b09e5f6
@@ -181,6 +181,7 @@ int main(int argc, char *argv[]) try
|
||||
|
||||
auto exitcode = contractor::Contractor(contractor_config).Run();
|
||||
|
||||
util::DumpSTXXLStats();
|
||||
util::DumpMemoryStats();
|
||||
|
||||
return exitcode;
|
||||
|
||||
@@ -167,6 +167,7 @@ int main(int argc, char *argv[]) try
|
||||
extractor_config.profile_path.string().c_str());
|
||||
auto exitcode = extractor::Extractor(extractor_config).run(scripting_environment);
|
||||
|
||||
util::DumpSTXXLStats();
|
||||
util::DumpMemoryStats();
|
||||
|
||||
return exitcode;
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
#include "partition/partitioner.hpp"
|
||||
|
||||
#include "util/log.hpp"
|
||||
#include "util/meminfo.hpp"
|
||||
#include "util/version.hpp"
|
||||
|
||||
#include <tbb/task_scheduler_init.h>
|
||||
@@ -153,6 +154,9 @@ int main(int argc, char *argv[]) try
|
||||
}
|
||||
|
||||
auto exitcode = partition::Partitioner().Run(partition_config);
|
||||
|
||||
util::DumpMemoryStats();
|
||||
|
||||
return exitcode;
|
||||
}
|
||||
catch (const std::bad_alloc &e)
|
||||
|
||||
Reference in New Issue
Block a user