0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

プロファイラーツールの使い方

0
Last updated at Posted at 2018-02-22

.htaccessに以下を追記

# xDebug profiler
php_flag xdebug.profiler_append Off
php_flag xdebug.profiler_enable On
php_flag xdebug.profiler_enable_trigger On
php_value xdebug.profiler_output_dir /home/sv01/www/html/logs
php_value xdebug.profiler_output_name xdebug%Rlog 

XDEBUG_PROFILEをGETパラメーターにしてサイトにアクセスします。
※mod_rewriteでリライトされると取れない場合があると思うので気をつけて下さい

例)
http://example.com/?XDEBUG_PROFILE

この設定を行うと、リクエストごとのプロファイルファイルが、xdebug_profiler_output_dirに出力されます。
例)xdebug_products_detail25795_htmllog

このログを見てもいいですがみにくいのでGUIを利用します。
https://github.com/ceefour/wincachegrind/releases/tag/1.1

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?