Skip to content

Commit

Permalink
Fixed xhprof profiler config
Browse files Browse the repository at this point in the history
  • Loading branch information
mnapoli committed Nov 27, 2014
1 parent 0a10d2b commit 423a416
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/Profiler.php
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ function xhprof_error($out) {
$currentGitBranch = SettingsPiwik::getCurrentGitBranch();
$profilerNamespace = "piwik";
if ($currentGitBranch != 'master') {
$profilerNamespace .= "." . $currentGitBranch;
$profilerNamespace .= "-" . $currentGitBranch;
}

xhprof_enable(XHPROF_FLAGS_CPU + XHPROF_FLAGS_MEMORY);
Expand Down Expand Up @@ -270,7 +270,7 @@ function xhprof_error($out) {
$baseUrl = $baseUrlStored . "vendor/facebook/xhprof/xhprof_html/?source=$profilerNamespace&run=$runId";

$out .= "Profiler report is available at:\n";
$out .= $baseUrl;
$out .= "<a href='$baseUrl'>$baseUrl</a>";
$out .= "\n\n";

echo $out;
Expand Down

0 comments on commit 423a416

Please sign in to comment.