Language performance optimization for PHP performance: Install VLD extension--detect performance

Source: Internet
Author: User

Installing with Linux commands
//Download the installation packagewget http://pecl.php.net/get/vld-0.14.0.tgz//Unpacking PackageTar zxvf vld-0.14.0.tgz//go to compile, install directoryCD vld-0.14.0///Extended block of PHP extensionphpize//find the Php-config path using locateLocate php-Config If the command is not indicated, run the following command Yum-y install mlocateupdatedb//more rows of data, you can configure the compiled Php-config path with//./configure--with-php-config=/usr/local/php/bin/php-config--enable-VLD//Compiling the installationMake &&Make Install//Edit the php.ini file to activate the extensionExtension==vld.So finally restart the server, OK

When I installed, always prompt no Configuer file, check the Readme file, the original can be installed through Git, the following is the GIT installation.

Installing VLD extensions via git

The steps are as follows:

Clone https://github.com/derickr/vld.gitcd VLD phpize./configure-- With-php-config=/usr/local/php/bin/php-config--enable-&& make install

Don't end it, activate the VLD extension in the php.ini file.

Each is explained at the time of the command installation.

Check performance

Php-dvld.active =1–dvld.execute=0 test.php

VLD extension of the main two parameter list

-dvld.active defaults to 0. Represents whether the PHP file that is running is active VLD hooks,

-dvld.execute defaults to 1. Represents only the intermediate code, does not execute the generated intermediate code, can be set to 0, indicating that the intermediate generation code is not executed

More list of parameters can be Baidu

Also refer to: http://blog.csdn.net/21aspnet/article/details/7002644

Language performance optimization for PHP performance: Install VLD extension--detect performance

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.