You are here

private function XHProfRunsFile::file_name in XHProf 7

Same name and namespace in other branches
  1. 6 XHProfRunsFile.inc \XHProfRunsFile::file_name()
2 calls to XHProfRunsFile::file_name()
XHProfRunsFile::get_run in ./XHProfRunsFile.inc
XHProfRunsFile::save_run in ./XHProfRunsFile.inc

File

./XHProfRunsFile.inc, line 25
Definition of XHProfRunsFile.

Class

XHProfRunsFile
XHProfRuns_Default is the default implementation of the iXHProfRuns interface for saving/fetching XHProf runs.

Code

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