From 0763e5df318c11f7a363d30b79edcdc551f783f7 Mon Sep 17 00:00:00 2001 From: marco <marco@5a81b35b-ba03-0410-adc8-b2c5c5119f08> Date: Tue, 2 Mar 2010 09:26:33 +0000 Subject: [PATCH] added profiling statements to view ops git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@1747 5a81b35b-ba03-0410-adc8-b2c5c5119f08 --- modules/mol/base/src/view_op.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/mol/base/src/view_op.cc b/modules/mol/base/src/view_op.cc index bbb34e765..c59ea852a 100644 --- a/modules/mol/base/src/view_op.cc +++ b/modules/mol/base/src/view_op.cc @@ -22,6 +22,7 @@ */ #include <iostream> +#include <ost/profile.hh> #include <ost/mol/mol.hh> #include <ost/mol/impl/entity_impl.hh> #include <ost/mol/impl/chain_impl.hh> @@ -54,6 +55,7 @@ typedef std::map<BondHandle,bool, BondCmp> BondMap; mol::EntityView Union(const mol::EntityView& ev1, const mol::EntityView& ev2) { + Profile union_time("mol::Union"); if (ev1.GetHandle()!=ev2.GetHandle()) { throw IntegrityError(combining_not_allowed); } @@ -103,6 +105,7 @@ mol::EntityView Union(const mol::EntityView& ev1, const mol::EntityView& ev2) mol::EntityView Difference(const mol::EntityView& ev1, const mol::EntityView& ev2) { + Profile diff_time("mol::Difference"); if (ev1.GetHandle()!=ev2.GetHandle()) { throw IntegrityError(combining_not_allowed); } @@ -149,6 +152,7 @@ mol::EntityView Difference(const mol::EntityView& ev1, mol::EntityView Intersection(const mol::EntityView& ev1, const mol::EntityView& ev2) { + Profile intersection_time("mol::Intersection"); if (ev1.GetHandle()!=ev2.GetHandle()) { throw IntegrityError(combining_not_allowed); } @@ -369,6 +373,7 @@ private: EntityHandle CreateEntityFromView(const EntityView& view, bool include_exlusive_atoms) { + Profile create_time("mol::CreateEntityFromView"); EntityHandle ent=CreateEntity(); Replicator replicator(ent.Impl(), view, include_exlusive_atoms); TorsionAdder adder(replicator, ent.Impl(), view); -- GitLab