Profiling FreePBX is the process of finding where slowdowns in the code are. This walkthrough will guide you into installing a profiler for PHP locally on your system
cd /var/www/html/
wget https://github.com/perftools/xhgui/archive/0.9.0.tar.gz
tar vxzf 0.9.0.tar.gz
cd xhgui-0.9.0
php install.php
cp config/config.default.php config/config.php
Edit /var/www/html/xhgui-0.9.0/config/config.php, make sure this function returns true