GCodeProcessor::MoveVertex -> added placeholder for time

This commit is contained in:
enricoturri1966 2020-04-28 10:29:25 +02:00
parent a77461b467
commit 1cb0f044db
4 changed files with 11 additions and 0 deletions
src/slic3r/GUI

View file

@ -346,6 +346,7 @@ void GCodeViewer::load_toolpaths(const GCodeProcessor::Result& gcode_result)
{
#if ENABLE_GCODE_VIEWER_STATISTICS
auto start_time = std::chrono::high_resolution_clock::now();
m_statistics.results_size = gcode_result.moves.size() * sizeof(GCodeProcessor::MoveVertex);
#endif // ENABLE_GCODE_VIEWER_STATISTICS
// vertex data
@ -1022,6 +1023,12 @@ void GCodeViewer::render_statistics() const
ImGui::Separator();
ImGui::PushStyleColor(ImGuiCol_Text, ORANGE);
imgui.text(std::string("Results:"));
ImGui::PopStyleColor();
ImGui::SameLine(offset);
imgui.text(std::to_string(m_statistics.results_size) + " bytes");
ImGui::PushStyleColor(ImGuiCol_Text, ORANGE);
imgui.text(std::string("Vertices:"));
ImGui::PopStyleColor();