Skip to content

Commit

Permalink
[FIXED] callgraph cache naming conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
jokkedk committed Mar 1, 2011
1 parent f020c26 commit 0c32699
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.php
Expand Up @@ -142,7 +142,7 @@ class Webgrind_MasterConfig
$dataFile = $files[0]['filename'];
}
header("Content-Type: image/png");
$filename = Webgrind_Config::storageDir().$dataFile.'-'.$showFraction.'.png';
$filename = Webgrind_Config::storageDir().$dataFile.'-'.$showFraction.Webgrind_Config::$preprocessedSuffix.'.png';
if (!file_exists($filename)) {
$imageData = shell_exec(Webgrind_Config::$pythonExecutable.' library/gprof2dot.py -n '.$showFraction.' -f callgrind '.Webgrind_Config::xdebugOutputDir().''.$dataFile.' | '.Webgrind_Config::$dotExecutable.' -Tpng');
file_put_contents($filename, $imageData);
Expand Down

0 comments on commit 0c32699

Please sign in to comment.