Clear the timer map to help valgrind.
* src/misc/timer.hh (reset_all): New method. * iface/dve2/dve2check.cc: Use it to help valgrind.
This commit is contained in:
parent
e75a73dfb1
commit
0584d278d1
3 changed files with 17 additions and 2 deletions
|
|
@ -1,3 +1,10 @@
|
||||||
|
2011-03-07 Alexandre Duret-Lutz <adl@lrde.epita.fr>
|
||||||
|
|
||||||
|
Clear the timer map to help valgrind.
|
||||||
|
|
||||||
|
* src/misc/timer.hh (reset_all): New method.
|
||||||
|
* iface/dve2/dve2check.cc: Use it to help valgrind.
|
||||||
|
|
||||||
2011-03-07 Alexandre Duret-Lutz <adl@lrde.epita.fr>
|
2011-03-07 Alexandre Duret-Lutz <adl@lrde.epita.fr>
|
||||||
|
|
||||||
Some documentation of about the dve2 interface.
|
Some documentation of about the dve2 interface.
|
||||||
|
|
|
||||||
|
|
@ -306,6 +306,7 @@ main(int argc, char **argv)
|
||||||
|
|
||||||
if (use_timer)
|
if (use_timer)
|
||||||
tm.print(std::cout);
|
tm.print(std::cout);
|
||||||
|
tm.reset_all(); // This helps valgrind.
|
||||||
|
|
||||||
spot::ltl::atomic_prop::dump_instances(std::cerr);
|
spot::ltl::atomic_prop::dump_instances(std::cerr);
|
||||||
spot::ltl::unop::dump_instances(std::cerr);
|
spot::ltl::unop::dump_instances(std::cerr);
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
// Copyright (C) 2009 Laboratoire de Recherche et Développement
|
// Copyright (C) 2009, 2011 Laboratoire de Recherche et Developpement
|
||||||
// de l'Epita (LRDE).
|
// de l'Epita (LRDE).
|
||||||
// Copyright (C) 2004 Laboratoire d'Informatique de Paris 6 (LIP6),
|
// Copyright (C) 2004 Laboratoire d'Informatique de Paris 6 (LIP6),
|
||||||
// département Systèmes Répartis Coopératifs (SRC), Université Pierre
|
// département Systèmes Répartis Coopératifs (SRC), Université Pierre
|
||||||
|
|
@ -191,6 +191,13 @@ namespace spot
|
||||||
std::ostream&
|
std::ostream&
|
||||||
print(std::ostream& os) const;
|
print(std::ostream& os) const;
|
||||||
|
|
||||||
|
/// \brief Remove information about all timers.
|
||||||
|
void
|
||||||
|
reset_all()
|
||||||
|
{
|
||||||
|
tm.clear();
|
||||||
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
typedef std::pair<spot::timer, int> item_type;
|
typedef std::pair<spot::timer, int> item_type;
|
||||||
typedef std::map<std::string, item_type> tm_type;
|
typedef std::map<std::string, item_type> tm_type;
|
||||||
|
|
@ -200,4 +207,4 @@ namespace spot
|
||||||
/// @}
|
/// @}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // SPOT_MISC_ESCAPE_HH
|
#endif // SPOT_MISC_TIMER_HH
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue