From 7cd411b422750abf4eed04be43c43f310f55074f Mon Sep 17 00:00:00 2001 From: Constantin Date: Wed, 28 Apr 2010 10:30:32 +0200 Subject: added --enable-benchmark option to configure adapted code so that it compiles --- tilemgr/tile.cc | 9 ++++++++- tilemgr/tile.hh | 2 ++ 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'tilemgr') diff --git a/tilemgr/tile.cc b/tilemgr/tile.cc index 7ea8693..fadf2ca 100644 --- a/tilemgr/tile.cc +++ b/tilemgr/tile.cc @@ -53,6 +53,13 @@ static const char rcsid[] = "@(#)cachetamgr,Tile: $Id: tile.cc,v 1.79 2005/09/03 #include +#ifdef RMANBENCHMARK +RMTimer Tile::opTimer("Tile","opTimer"); +RMTimer Tile::relTimer("Tile","relTimer"); +RMTimer Tile::o2Timer("Tile","o2Timer"); +#endif + + const Tile& Tile::operator=(const Tile& tile) { @@ -825,7 +832,7 @@ Tile::copyTile(const r_Minterval &areaRes, const Tile *opTile, const r_Minterval r_MiterDirect opTileIter((void*)cellOp, opTile->getDomain(), areaOp, tsize); #ifdef RMANBENCHMARK - opTiler.resume(); + opTimer.resume(); #endif while (!resTileIter.isDone()) diff --git a/tilemgr/tile.hh b/tilemgr/tile.hh index 6a11005..79fd94a 100644 --- a/tilemgr/tile.hh +++ b/tilemgr/tile.hh @@ -371,6 +371,8 @@ class Tile // RMTimer for taking O2 times. Could be protected. Is controlled // in servercomm/servercomm2.cc. static RMTimer opTimer; + static RMTimer relTimer; + static RMTimer o2Timer; #endif protected: -- cgit