Skip to content

Instantly share code, notes, and snippets.

@GitHub30
Last active May 29, 2026 00:03
Show Gist options
  • Select an option

  • Save GitHub30/6fe199f90d95abe5404a93c62be39922 to your computer and use it in GitHub Desktop.

Select an option

Save GitHub30/6fe199f90d95abe5404a93c62be39922 to your computer and use it in GitHub Desktop.
rm /home/codespace/.php/current/bin/php
hash -r
sudo apt update
sudo apt install php php-xdebug php-mbstring php-sqlite3 php-xml
composer create-project laravel/laravel .
git init
git add . && git commit -m "コミットメッセージ"
php -d xdebug.mode=trace -d xdebug.start_with_request=yes -d xdebug.trace_format=1 -d xdebug.trace_output_name=trace.%t.%p -d xdebug.output_dir=$PWD -S localhost:8000 -t public
@GitHub30

GitHub30 commented May 28, 2026

Copy link
Copy Markdown
Author

完了しました!圧縮率のオプションを含めないデフォルト圧縮率でのランキングを表示しました。

📊 シンプルなランキング(デフォルト圧縮率のみ)

順位 形式 圧縮後 圧縮率 時間 コマンド
🥇 XZ 693.4 KB 3.0% 3.13s xz -k trace.33408.1779975558.xt
🥈 7Z 726.3 KB 3.1% 2.84s 7z a trace.7z trace.33408.1779975558.xt
🥉 TAR.GZ 1.77 MiB 7.7% 0.40s tar czf trace.tar.gz trace.33408.1779975558.xt
4 ZIP 1.77 MiB 7.7% 0.42s zip trace.zip trace.33408.1779975558.xt

推奨用途

  • 最高圧縮率が必要: xz -c trace.33408.1779975558.xt > trace.xz
  • 高速と圧縮率のバランス: 7z a trace.7z trace.33408.1779975558.xt
  • Linux互換性重視: tar czf trace.tar.gz trace.33408.1779975558.xt
  • Windows互換性重視: zip trace.zip trace.33408.1779975558.xt

@GitHub30

Copy link
Copy Markdown
Author

xdebug.trace_format = 3とxdebug.trace_format = 4はxdebug 3.3以降出ないとxdebug.trace_format = 1になる
https://derickrethans.nl/flamboyant-flamegraphs.html

php --ri xdebug | grep Version
Version => 3.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment