LoginSignup
2
1

More than 5 years have passed since last update.

[VCCW2.x] Graphvizをインストールしてコールグラフを表示する

Posted at

XHProfをインストールXHGUIをインストールしたので、
今回はコールグラフを表示するようにします。
「Graphviz」が必要になるので、インストールします。

環境

CentOS 6.7
PHP 5.4.45
VCCW 2.21

Graphvizのインストール&設定

インストール

$ vagrant ssh
$ sudo yum -y install graphviz graphviz-gd

xhgui/xhprof_lib/config.phpの編集

以下の記述がコメントアウトされているので外します。

[DocumentRoot]/xhgui/xhprof_lib/config.php
//These are good for linux and its derivatives.
$_xhprof['dot_binary']  = '/usr/bin/dot';
$_xhprof['dot_tempdir'] = '/tmp';
$_xhprof['dot_errfile'] = '/tmp/xh_dot.err';

確認

http://test.xhprof/xhgui/xhprof_html/index.php
から詳細ページへ行きます。
すると以下のような「View Callgraph」というリンクあると思います、

スクリーンショット 2018-06-11 18.55.57.png

をれをクリックすると以下のようなページが確認できると思います。

スクリーンショット 2018-06-11 18.54.38.png

参考

xhprofを使ってみた(XHGUIとCallgraphインストール編)

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1