You are here

private function Profiler::getNamespace in XHProf 8

Returns the namespace for this site.

Currently is set to the site name value.

Return value

string The string generated from site name.

2 calls to Profiler::getNamespace()
Profiler::getRun in src/Profiler.php
Loads a specific run.
Profiler::shutdown in src/Profiler.php
Shutdown and disable XHProf profiling.

File

src/Profiler.php, line 224

Class

Profiler
Provides profiler service.

Namespace

Drupal\xhprof

Code

private function getNamespace() {
  $result = $this->configFactory
    ->get('system.site')
    ->get('name');
  return str_replace([
    '.',
    '/',
    '\\',
  ], '-', $result);
}