Timing previously-hidden cost of constructing VariableIndex in JunctionTree

release/4.3a0
Richard Roberts 2011-02-09 16:22:56 +00:00
parent 010c9b3b1c
commit 312867ed41
1 changed files with 4 additions and 1 deletions

View File

@ -59,7 +59,10 @@ namespace gtsam {
/* ************************************************************************* */
template <class FG>
JunctionTree<FG>::JunctionTree(const FG& fg) {
construct(fg, VariableIndex(fg));
tic(0, "VariableIndex");
VariableIndex varIndex(fg);
toc(0, "VariableIndex");
construct(fg, varIndex);
}
/* ************************************************************************* */