cd ~/ && git clone https://gist.github.com/65bea84891cefd1c130308de3b963a2c.git xdebug_profiler \
&& cd xdebug_profiler && chmod +x start_profiler stop_profiler
./start_profiler
./stop_profiler
#!/bin/bash | |
echo "Включаю Xdebug Profiler" | |
sudo sed -i 's/xdebug.profiler_enable=0/xdebug.profiler_enable=1/' /etc/php/5.6/mods-available/xdebug.ini | |
sudo sed -i 's/xdebug.profiler_enable = 0/xdebug.profiler_enable = 1/' /etc/php/5.6/mods-available/xdebug.ini | |
sudo sed -i 's/xdebug.profiler_enable=Off/xdebug.profiler_enable=On/' /etc/php/5.6/mods-available/xdebug.ini | |
sudo sed -i 's/xdebug.profiler_enable = Off/xdebug.profiler_enable = On/' /etc/php/5.6/mods-available/xdebug.ini | |
echo "Перезагружаю PHP" | |
sudo systemctl restart php5.6-fpm |
#!/bin/bash | |
echo "Отключаю Xdebug Profiler" | |
sudo sed -i 's/xdebug.profiler_enable=1/xdebug.profiler_enable=0/' /etc/php/5.6/mods-available/xdebug.ini | |
sudo sed -i 's/xdebug.profiler_enable = 1/xdebug.profiler_enable = 0/' /etc/php/5.6/mods-available/xdebug.ini | |
sudo sed -i 's/xdebug.profiler_enable=On/xdebug.profiler_enable=Off/' /etc/php/5.6/mods-available/xdebug.ini | |
sudo sed -i 's/xdebug.profiler_enable = On/xdebug.profiler_enable = Off/' /etc/php/5.6/mods-available/xdebug.ini | |
echo "Перезагружаю PHP" | |
sudo systemctl restart php5.6-fpm |