show memory usage of loaded model(s)

This commit is contained in:
2023-10-23 04:50:08 +02:00
parent c06b7d9366
commit 2923cf1250
4 changed files with 40 additions and 9 deletions
+3 -1
View File
@@ -88,7 +88,9 @@ pub fn import_models_from_paths(paths: &Vec<PathBuf>, state: &mut ui::ui::State)
state.active_model = Some(m.id);
if let Some(model_name) = filename {
state.logger.log(&format!("Loaded model \"{}\"", model_name.to_str().unwrap()), log::LogLevel::Info);
let msg = format!("Loaded model \"{}\"", model_name.to_str().unwrap());
println!("{}", msg);
state.logger.log(&msg, log::LogLevel::Info);
m.name = model_name.to_str().unwrap().to_string();
}
state.objects.push(m);