Skip to content

Instantly share code, notes, and snippets.

@andypost
Last active August 23, 2020 20:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andypost/630e80d6532cca4f96f70e88566bc8d3 to your computer and use it in GitHub Desktop.
Save andypost/630e80d6532cca4f96f70e88566bc8d3 to your computer and use it in GitHub Desktop.
xhprof php assets
core9$ make exec0
docker exec -it -u 0:0 core9 ash
/var/www/html/web # apk add php7-xhprof-assets
fetch https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
...
OK: 116 MiB in 111 packages
/var/www/html/web # exit
core9$ make exec
docker exec -it -u 1000:1000 core9 ash
/var/www/html/web $ php -S 0.0.0.0:80 -t /usr/share/php7/xhprof/xhprof_html/
[Sun Aug 23 18:28:31 2020] Failed to listen on 0.0.0.0:80 (reason: Permission denied)
/var/www/html/web $ php -S 0.0.0.0:8080 -t /usr/share/php7/xhprof/xhprof_html/
[Sun Aug 23 18:28:40 2020] PHP 7.4.9 Development Server (http://0.0.0.0:8080) started
[Sun Aug 23 18:29:28 2020] 172.30.1.1:60898 Accepted
[Sun Aug 23 18:29:28 2020] 172.30.1.1:60898 [200]: GET /
@andypost
Copy link
Author

object

[{"s":"_drush_log_drupal_messages==>function_exists","ct":3,"wt":1},{"s":"main()==>_drush_log_drupal_messages","ct":2,"wt":8},...

json
{"_drush_log_drupal_messages==>function_exists":{"ct":3,"wt":1},"main()==>_drush_log_drupal_messages":{"ct":2,"wt":8},...

Orignal

a:1112:{
s:44:"_drush_log_drupal_messages==>function_exists";a:2:{s:2:"ct";i:3;s:2:"wt";i:1;}
s:35:"main()==>_drush_log_drupal_messages";a:2:{s:2:"ct";i:2;s:2:"wt";i:8;}
...

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