summaryrefslogtreecommitdiffstats
path: root/tilemgr
diff options
context:
space:
mode:
authorConstantin <jucovschi@gmail.com>2010-04-28 10:30:32 +0200
committerConstantin <jucovschi@gmail.com>2010-04-28 10:57:31 +0200
commit7cd411b422750abf4eed04be43c43f310f55074f (patch)
treece475c4ea092bbe68c1bce7020101adba632d384 /tilemgr
parentae19f9b07d8d24b865bd0f1d886fc920cc9f37b1 (diff)
downloadrasdaman-upstream-7cd411b422750abf4eed04be43c43f310f55074f.tar.gz
rasdaman-upstream-7cd411b422750abf4eed04be43c43f310f55074f.tar.xz
rasdaman-upstream-7cd411b422750abf4eed04be43c43f310f55074f.zip
added --enable-benchmark option to configure adapted code so that it compiles
Diffstat (limited to 'tilemgr')
-rw-r--r--tilemgr/tile.cc9
-rw-r--r--tilemgr/tile.hh2
2 files changed, 10 insertions, 1 deletions
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 <cstring>
+#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: