Skip to content

Instantly share code, notes, and snippets.

@altynbek07
Last active December 5, 2019 04:36
Show Gist options
  • Save altynbek07/65bea84891cefd1c130308de3b963a2c to your computer and use it in GitHub Desktop.
Save altynbek07/65bea84891cefd1c130308de3b963a2c to your computer and use it in GitHub Desktop.
Запуск Xdebug Profiler

Xdebug Profiler

Usage

cd ~/ && git clone https://gist.github.com/65bea84891cefd1c130308de3b963a2c.git xdebug_profiler \
&& cd xdebug_profiler && chmod +x start_profiler stop_profiler

Start

./start_profiler

Stop

./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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment