From eaed2bd6c200db53ccb4877148ba6a25a2004a86 Mon Sep 17 00:00:00 2001 From: Ansgar Philippsen <ansgar.philippsen@gmail.com> Date: Wed, 23 Feb 2011 15:24:56 -0500 Subject: [PATCH] added a io/mae profiling test --- modules/io/src/mol/entity_io_mae_handler.cc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/modules/io/src/mol/entity_io_mae_handler.cc b/modules/io/src/mol/entity_io_mae_handler.cc index a60b913f3..73c7c822b 100644 --- a/modules/io/src/mol/entity_io_mae_handler.cc +++ b/modules/io/src/mol/entity_io_mae_handler.cc @@ -364,8 +364,14 @@ mol::EntityHandle LoadMAE(const String& file_name) MAEReader reader(file_name); mol::EntityHandle ent=mol::CreateEntity(); mol::XCSEditor editor=ent.EditXCS(mol::BUFFERED_EDIT); - reader.Import(ent); - conop::Conopology::Instance().ConnectAll(builder,ent); + { + Profile profile("import MAE"); + reader.Import(ent); + } + { + Profile profile("connect all"); + conop::Conopology::Instance().ConnectAll(builder,ent); + } return ent; } -- GitLab