TomoakiNagahara / op-skeleton-2024

Apache License 2.0
1 stars 0 forks source link

Profiler #9

Open TomoakiNagahara opened 1 year ago

TomoakiNagahara commented 1 year ago

Tideways

dev.php

Analytics

TomoakiNagahara commented 1 year ago

Tideways

Install

  1. sudo port install php-tideways_xhprof
  2. sudo port install go
  3. export GOPATH=$HOME/go
  4. export PATH=$GOPATH/bin:$PATH
  5. go install github.com/tideways/toolkit

CLI Profile

  1. toolkit analyze-xhprof /www/_caches/php/xhprof/date/*.xhprof
  2. toolkit generate-xhprof-graphviz /www/_caches/php/xhprof/date/*.xhprof
  3. dot -Tpng callgraph.dot > callgraph.png

xhprof-html

maybe, not support Tideways.

  1. git clone https://github.com/sters/xhprof-html
  2. cd xhprof-html
  3. php -S localhost:8001
  4. http://localhost:8001/?dir={Your xhprof profiling result dir}