aboutsummaryrefslogtreecommitdiffhomepage
path: root/prof.sh
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-03-13 22:12:59 +0900
committernsfisis <nsfisis@gmail.com>2024-03-13 22:13:02 +0900
commit7348999caf3ce1e0be64697319581d52f1d7f8ea (patch)
tree21f864b62825c79aa74c1ed935dfa801c00c42a6 /prof.sh
parentb89054b420235df9b9d7815bf9fad71e3b361395 (diff)
downloadphp-waddiwasi-7348999caf3ce1e0be64697319581d52f1d7f8ea.tar.gz
php-waddiwasi-7348999caf3ce1e0be64697319581d52f1d7f8ea.tar.zst
php-waddiwasi-7348999caf3ce1e0be64697319581d52f1d7f8ea.zip
perf: log instruction metrics
Diffstat (limited to 'prof.sh')
-rw-r--r--prof.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/prof.sh b/prof.sh
index 0361100..2d456e7 100644
--- a/prof.sh
+++ b/prof.sh
@@ -1,3 +1,5 @@
timestamp="$(date '+%Y%m%d-%H%M')"
-php -d 'error_reporting=E_ALL & ~E_DEPRECATED & ~E_USER_DEPRECATED' vendor/bin/reli inspector:trace -o traces/"$timestamp".log -- php -d memory_limit=256M -d opcache.enable_cli=on -d opcache.jit=on -d opcache.jit_buffer_size=1G examples/php-on-wasm/php-wasm.php 2> traces/"$timestamp".stderr.log
-vendor/bin/reli converter:flamegraph < traces/"$timestamp".log > traces/"$timestamp".svg
+# php -d 'error_reporting=E_ALL & ~E_DEPRECATED & ~E_USER_DEPRECATED' vendor/bin/reli inspector:trace -o traces/"$timestamp".log -- php -d memory_limit=256M -d opcache.enable_cli=on -d opcache.jit=on -d opcache.jit_buffer_size=1G examples/php-on-wasm/php-wasm.php 2> traces/"$timestamp".stderr.log
+# vendor/bin/reli converter:flamegraph < traces/"$timestamp".log > traces/"$timestamp".svg
+
+php -d memory_limit=256M -d opcache.enable_cli=on -d opcache.jit=on -d opcache.jit_buffer_size=1G examples/php-on-wasm/php-wasm.php 2> traces/"$timestamp".stderr.log