Sure you can, and also in a better way than described, thats all thanks to Yii's profiling methods.

When they talk about object factory and object engine, you can just wrap the execution of those calls inside Yii::begindProfile/endProfile, to find out whats the execution time of calling exactly that code. which is a lot better than calculating the time difference by hand.

Also, as for the example, if you want to log code execution to a point in time, you can just call

Yii::trace("Time taken to get to line ".__LINE__." ".Yii::getLogger()->getExecutionTime());

It will show in your console tab though. but I don't see the need when you can profile code blocks.

First of all, all queries are displayed in ms (milliseconds) but in fact they are in seconds.
Second, the"load time" and "memory used" tabs do not work for me. They both display "This panel has no log items". Did I miss any configuration?
Lastly, the profiler only appears if there is a database call. Some users might be confused and thought not working.

First of all, all queries are displayed in ms (milliseconds) but in fact they are in seconds.
Second, the"load time" and "memory used" tabs do not work for me. They both display "This panel has no log items". Did I miss any configuration?
Lastly, the profiler only appears if there is a database call. Some users might be confused and thought not working.

The Memory Tab (memory used), only shows data if you have logged something using, PQPLogRoute::logMemory(),

The log may not show anything if nothing has been logged. you can log things using the aforementioned methods, and using Yii::trace and Yii::log, you can also add "system.*" to your categories in order to let the system trace framework information.

Hi, the PQP extension is really cool but I can't make it work integrating with my application's controllers. I followed the steps from http://www.yiiframew...pquickprofiler/ and it seems working when I access the PQPLogRoute class directly with my local url local.yii.com/PQPLogRoute. But when I insert logs (using Yii::trace, Yii::log, Yii::beginProfile and Yii::endProfile or PQPLogRoute::logMemory) in other controllers I can't see the logs. Where can I see the logs? Thanks. I hope there is a video demo for this exciting extension