xhprof を使用してプログラムを構成しようとしています。
php-cli モードまたは php の組み込み webServer を使用すると、callgraph 生成イメージがうまく機能します。
しかし、nginx+php-fpm を使用すると、xhprof_generate_image_by_dot のドット exec が永久にブロックされます。
次に、pear Image_Graphviz をインストールします。次のような単純なケースを記述します。
require_once 'Image/GraphViz.php';
$img = new Image_GraphViz();
$img->addNode(
'Node1',
array(
'URL' => 'http://link1',
'label' => 'This is a label',
'shape' => 'box'
)
);
$img->image('png');
php の組み込み webServer は png ファイルを生成できますが、php-fpm は dot exec で永久にブロックされます。
それで、誰か私を助けることができますか?これの何が問題なのですか?関連するマシン情報は次のとおりです。
- OS:OSX
- Graphviz バージョン:2.34.0
- アプリ: nginx1.2.8+php-fpm+php5.4.21+xhprof (github の最新バージョン)