public function XHProfRunsFile::getRun in XHProf 7
Same name and namespace in other branches
- 6 XHProfLib/XHProfRuns.php \XHProfRunsFile::getRun()
File
- XHProfLib/
XHProfRuns.php, line 25
Class
Code
public function getRun($run_id, $namespace) {
$file_name = $this
->fileName($run_id, $namespace);
if (!file_exists($file_name)) {
throw new Exception("Could not find file {$file_name}");
}
$contents = file_get_contents($file_name);
return unserialize($contents);
}