How to display page profiling results in Yii

In your /protected/config/main.php, update the variables [‘db’][‘enableProfiling’] as well as a add CProfileLogRoute class. It should look like the following:

[code lang=”php”] array(
“enableProfiling” => true;
“connectionString” => “mysql:host=localhost;dbname=db_name”,
“emulatePrepare” => true,
“enableParamLogging” => true,
“username” => “root”,
“password” => “”,
“charset” => “utf8”,
),
“log” => array(
“class” => “CLogRouter”,
“routes” => array(
array(“class” => “CProfileLogRoute”),
array(“class” => “CFileLogRoute”, “levels” => “error, warning, trace”,),
),
),
);
?>[/code]

This is for the PHP framework Yii Framework.