You are here

public function Profiler::createRunId in XHProf 8

Creates a new unique run id.

Return value

string The run ID.

Overrides ProfilerInterface::createRunId

File

src/Profiler.php, line 201

Class

Profiler
Provides profiler service.

Namespace

Drupal\xhprof

Code

public function createRunId() {
  if (!$this->runId) {
    $this->runId = uniqid();
  }
  return $this->runId;
}