You are here

private function FileStorage::fileName in XHProf 8

Parameters

string $run_id:

string $namespace:

Return value

string

2 calls to FileStorage::fileName()
FileStorage::getRun in src/XHProfLib/Storage/FileStorage.php
Loads run.
FileStorage::saveRun in src/XHProfLib/Storage/FileStorage.php
Saves run data.

File

src/XHProfLib/Storage/FileStorage.php, line 132

Class

FileStorage
Provides file storage backend for xhprof runs.

Namespace

Drupal\xhprof\XHProfLib\Storage

Code

private function fileName($run_id, $namespace) {
  $file = implode('.', [
    $run_id,
    $namespace,
    $this->suffix,
  ]);
  if (!empty($this->dir)) {
    $file = $this->dir . "/" . $file;
  }
  return $file;
}