|
@@ -33,6 +33,7 @@
|
|
|
#include <iostream>
|
|
|
#include "value.hpp"
|
|
|
#include "container.hpp"
|
|
|
+#include "memtrack.hpp"
|
|
|
#include "datafile.hpp"
|
|
|
#include "log.hpp"
|
|
|
|
|
@@ -95,8 +96,13 @@ class DataSet{
|
|
|
if (!silent) std::cout << std::endl;
|
|
|
while( load_next() ){
|
|
|
current_event = get_current_event();
|
|
|
- if (!silent) std::cout << "\rprocessing event: " << current_event+1 << "/" << events
|
|
|
+ if (!silent){
|
|
|
+ size_t m_used = getCurrentRSS() / 1024 / 1024;
|
|
|
+ size_t m_peak = getPeakRSS() / 1024 / 1024;
|
|
|
+ std::cout << "\rprocessing event: " << current_event+1 << "/" << events
|
|
|
+ << ", " << m_used << "/" << m_peak << "MB used/peak"
|
|
|
<< " of file: " << get_current_file().filename << std::flush;
|
|
|
+ }
|
|
|
GenValue::reset();
|
|
|
for(auto con : containers){
|
|
|
DEBUG("Filling container " << con.first << ".");
|