You are here

private function MongodbXHProfRuns::file_name in XHProf 7

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

File

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

Class

MongodbXHProfRuns
Defines a MongoDB storage backend for XHProf.

Code

private function file_name($run_id, $type) {
  $file = "{$run_id}.{$type}";
  if (!empty($this->dir)) {
    $file = $this->dir . "/" . $file;
  }
  return $file;
}