You are here

public function MongodbXHProfRuns::getCount in XHProf 6

Same name and namespace in other branches
  1. 8 modules/xhprof_mongodb/MongodbXHProfRuns.inc \MongodbXHProfRuns::getCount()
  2. 7 modules/xhprof_mongodb/MongodbXHProfRuns.inc \MongodbXHProfRuns::getCount()

File

modules/xhprof_mongodb/MongodbXHProfRuns.inc, line 63
Definition of MongodbXHProfRuns.

Class

MongodbXHProfRuns
Defines a MongoDB storage backend for XHProf.

Code

public function getCount() {
  $collection = mongodb_collection('xhprof');
  $count = $collection
    ->count();
  return $count;
}