Add performance profiling tools and test data generator
Add Xdebug configuration and container setup for performance profiling Add comprehensive performance testing script with profiling and test data generation Add test data statistics and cleanup commands Add documentation for all performance testing features
This commit is contained in:
parent
47cf4d8652
commit
ccfca94b57
3 changed files with 338 additions and 1 deletions
14
devel/Containerfile
Normal file
14
devel/Containerfile
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
FROM php:8.4.14-apache
|
||||
|
||||
# Install Xdebug for performance profiling
|
||||
RUN pecl install xdebug-3.5.0 && \
|
||||
docker-php-ext-enable xdebug
|
||||
|
||||
# Configure Xdebug for profiling
|
||||
RUN echo "xdebug.mode=develop,profile" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini && \
|
||||
echo "xdebug.output_dir=/tmp" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini && \
|
||||
echo "xdebug.start_with_request=trigger" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini && \
|
||||
echo "xdebug.profiler_output_name=cachegrind.out.%p" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
|
||||
|
||||
# Note: To trigger profiling, add ?XDEBUG_PROFILE=1 to any URL
|
||||
# Profile files will be generated in /tmp/ inside the container
|
||||
Loading…
Add table
Add a link
Reference in a new issue