Logging of memory usage for the GCodeAnalyzer and GCodePreviewData.

This commit is contained in:
bubnikv 2018-12-18 15:55:45 +01:00
parent 59b01b4908
commit 1e6900afa2
7 changed files with 77 additions and 11 deletions
src/libslic3r

View file

@ -1644,8 +1644,11 @@ void GCode::process_layer(
// printf("G-code after filter:\n%s\n", out.c_str());
_write(file, gcode);
BOOST_LOG_TRIVIAL(trace) << "Exported layer " << layer.id() << " print_z " << print_z << ", time estimator memory: " +
format_memsize_MB(m_normal_time_estimator.memory_used() + m_silent_time_estimator_enabled ? m_silent_time_estimator.memory_used() : 0);
BOOST_LOG_TRIVIAL(trace) << "Exported layer " << layer.id() << " print_z " << print_z <<
", time estimator memory: " <<
format_memsize_MB(m_normal_time_estimator.memory_used() + m_silent_time_estimator_enabled ? m_silent_time_estimator.memory_used() : 0) <<
", analyzer memory: " <<
format_memsize_MB(m_analyzer.memory_used());
}
void GCode::apply_print_config(const PrintConfig &print_config)