aboutsummaryrefslogtreecommitdiffhomepage
path: root/prof.sh
diff options
context:
space:
mode:
Diffstat (limited to 'prof.sh')
-rw-r--r--prof.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/prof.sh b/prof.sh
new file mode 100644
index 0000000..bd5a456
--- /dev/null
+++ b/prof.sh
@@ -0,0 +1,3 @@
+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=4G -d opcache.enable_cli=on -d opcache.jit=on -d opcache.jit_buffer_size=1G examples/php-on-wasm/php-wasm.php
+vendor/bin/reli converter:flamegraph < traces/"$timestamp".log > traces/"$timestamp".svg