Add xhprof

This commit is contained in:
cytopia
2023-01-01 13:04:35 +01:00
parent 26c4fb5419
commit 3770ac24ff
50 changed files with 425 additions and 14 deletions

View File

@@ -456,11 +456,13 @@ RUN set -eux \
{% endif %}
# Deactive PSR and Phalcon:
# Deactivate PSR and Phalcon:
# https://github.com/devilbox/docker-php-fpm/issues/201
# Deactivate xhprof (might collide with Xdebug)
RUN set -eux \
&& rm -f /usr/local/etc/php/conf.d/docker-php-ext-phalcon.ini || true \
&& rm -f /usr/local/etc/php/conf.d/docker-php-ext-psr.ini || true \
&& rm -f /usr/local/etc/php/conf.d/docker-php-ext-xhprof.ini || true \
###

View File

@@ -454,6 +454,9 @@ RUN set -eux \
fi \
&& if find /usr/local/lib/php/extensions/ -name psr.so | grep psr; then \
echo "extension=psr.so" > /usr/local/etc/php/conf.d/docker-php-ext-psr.ini; \
fi \
&& if find /usr/local/lib/php/extensions/ -name xhprof.so | grep xhprof; then \
echo "extension=xhprof.so" > /usr/local/etc/php/conf.d/docker-php-ext-xhprof.ini; \
fi
###

View File

@@ -213,6 +213,9 @@ RUN set -eux \
fi \
&& if find /usr/local/lib/php/extensions/ -name psr.so | grep psr; then \
echo "extension=psr.so" > /usr/local/etc/php/conf.d/docker-php-ext-psr.ini; \
fi \
&& if find /usr/local/lib/php/extensions/ -name xhprof.so | grep xhprof; then \
echo "extension=xhprof.so" > /usr/local/etc/php/conf.d/docker-php-ext-xhprof.ini; \
fi
###
@@ -497,6 +500,9 @@ RUN set -eux \
fi \
&& if find /usr/local/lib/php/extensions/ -name psr.so | grep psr; then \
echo "extension=psr.so" > /usr/local/etc/php/conf.d/docker-php-ext-psr.ini; \
fi \
&& if find /usr/local/lib/php/extensions/ -name xhprof.so | grep xhprof; then \
echo "extension=xhprof.so" > /usr/local/etc/php/conf.d/docker-php-ext-xhprof.ini; \
fi
###

View File

@@ -105,6 +105,7 @@ extensions_enabled:
- vips
- wddx
- xdebug
- xhprof
- xlswriter
- xmlreader
- xmlrpc
@@ -1547,6 +1548,22 @@ extensions_available:
5.2:
type: pecl
version: 2.2.7
xhprof:
disabled: [5.2]
all:
type: pecl
5.6:
type: pecl
version: 0.9.4
5.5:
type: pecl
version: 0.9.4
5.4:
type: pecl
version: 0.9.4
5.3:
type: pecl
version: 0.9.4
xlswriter:
disabled: [5.2, 5.3, 5.4, 5.5, 5.6]
all: