* src/misc/memusage.cc, src/misc/memusage.hh: New files.

* src/misc/Makefile.am: Add them.
* src/tgbaalgos/gtec/gtec.cc,
src/tgbaalgos/gtec/gtec.hh: Add a "vmsize" statistic.
This commit is contained in:
Alexandre Duret-Lutz 2006-07-18 09:29:42 +00:00
parent 9e97543e33
commit c2bc76816b
6 changed files with 103 additions and 1 deletions

View file

@ -21,6 +21,7 @@
#include "gtec.hh"
#include "ce.hh"
#include "misc/memusage.hh"
namespace spot
{
@ -40,6 +41,9 @@ namespace spot
stats["removed components"] =
static_cast<spot::unsigned_statistics::unsigned_fun>
(&couvreur99_check::get_removed_components);
stats["vmsize"] =
static_cast<spot::unsigned_statistics::unsigned_fun>
(&couvreur99_check::get_vmsize);
}
couvreur99_check::~couvreur99_check()
@ -53,6 +57,15 @@ namespace spot
return removed_components;
}
unsigned
couvreur99_check::get_vmsize() const
{
int size = memusage();
if (size > 0)
return size;
return 0;
}
void
couvreur99_check::remove_component(const state* from)
{