[EXTENSION] PhpQuickProfiler PhpQuickProfiler discussion forum
#1
Posted 27 November 2011 - 01:12 PM
Please post any doubts here, and not in the extension page when possible.
- Extension: XUpload - jQuery File Upload Extension
- Extension: PhpQuickProfiler - A Web Log Router that will help you profile your application
- Extension: XDateView - A Date grouped Grid View
- Extension: Foundation - An easy to use, powerful, and flexible framework for building prototypes and production code on any kind of device.
- Wiki: How to generate Yii like Documentation
- Wiki: How to re enable logging during unit testing
#2
Posted 27 November 2011 - 01:16 PM
webscriptz said:
It really is a nice piece of software but unfortunately i can't seem to get it to work properly, i've even copied it from the svn on google code and it still doesn't show anything...
Is it possible that you are not logging anything? try adding system.* to your categories, if you do not see anything after that then please paste your configuration so that I can help you further.
- Extension: XUpload - jQuery File Upload Extension
- Extension: PhpQuickProfiler - A Web Log Router that will help you profile your application
- Extension: XDateView - A Date grouped Grid View
- Extension: Foundation - An easy to use, powerful, and flexible framework for building prototypes and production code on any kind of device.
- Wiki: How to generate Yii like Documentation
- Wiki: How to re enable logging during unit testing
#3
Posted 30 November 2011 - 06:46 AM
The memory log is something that could be added to the framework itself.
#4
Posted 03 December 2011 - 08:16 PM
Some of the log messages in the PhpQuickProfiler are missing parts of the text. For example, PQP reports the last like of one query as:
left join genre g2 on g2.id = dg2.genre_id group by u.id, dg2.is_primary LIMIT 50
while in protexted/runtime/application.log:
left join genre g2 on g2.id = dg2.genre_id where (c.user_id is not null) group by u.id, dg2.is_primary LIMIT 50
very odd.
do you have a regexp tidying up the strings for display that is perhaps being a bit too agressive?
We've got a YiiBot and all kinds of other groovy stuff going on.
Comparison of Internet Relay Chat clients
Web IRC client
#5
Posted 03 December 2011 - 08:42 PM
fsb, on 03 December 2011 - 08:16 PM, said:
Some of the log messages in the PhpQuickProfiler are missing parts of the text. For example, PQP reports the last like of one query as:
left join genre g2 on g2.id = dg2.genre_id group by u.id, dg2.is_primary LIMIT 50
while in protexted/runtime/application.log:
left join genre g2 on g2.id = dg2.genre_id where (c.user_id is not null) group by u.id, dg2.is_primary LIMIT 50
very odd.
do you have a regexp tidying up the strings for display that is perhaps being a bit too agressive?
There are no regex, nor log processing, its very strange, are you entirely sure you are talking about the same query? can you isolate the query to be sure?
- Extension: XUpload - jQuery File Upload Extension
- Extension: PhpQuickProfiler - A Web Log Router that will help you profile your application
- Extension: XDateView - A Date grouped Grid View
- Extension: Foundation - An easy to use, powerful, and flexible framework for building prototypes and production code on any kind of device.
- Wiki: How to generate Yii like Documentation
- Wiki: How to re enable logging during unit testing
#6
Posted 04 December 2011 - 05:52 AM
Is it possible to log page execution speed as described in following link, too?
http://particletree....quick-profiler/
#7
Posted 04 December 2011 - 08:08 PM
Sebastian K., on 04 December 2011 - 05:52 AM, said:
Is it possible to log page execution speed as described in following link, too?
http://particletree....quick-profiler/
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.
- Extension: XUpload - jQuery File Upload Extension
- Extension: PhpQuickProfiler - A Web Log Router that will help you profile your application
- Extension: XDateView - A Date grouped Grid View
- Extension: Foundation - An easy to use, powerful, and flexible framework for building prototypes and production code on any kind of device.
- Wiki: How to generate Yii like Documentation
- Wiki: How to re enable logging during unit testing
#8
Posted 20 December 2011 - 02:55 AM
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.
#9
Posted 20 December 2011 - 09:06 AM
coke, on 20 December 2011 - 02:55 AM, said:
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.
thanks for you feedback, it is very much appreciated.
Ill take a look into the milliseconds thing.
As for your other questions:
- Load time, most known as the Speed tab, only shows data if you have profiled anything within your application, using Yii::beginProfile() and Yii::endProfile()
- 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.
- Extension: XUpload - jQuery File Upload Extension
- Extension: PhpQuickProfiler - A Web Log Router that will help you profile your application
- Extension: XDateView - A Date grouped Grid View
- Extension: Foundation - An easy to use, powerful, and flexible framework for building prototypes and production code on any kind of device.
- Wiki: How to generate Yii like Documentation
- Wiki: How to re enable logging during unit testing
#10
Posted 20 December 2011 - 11:34 AM
This extension will definitely speed up the development! I am all for it.
#11
Posted 24 December 2011 - 11:24 AM
PHP Fatal error: Uncaught exception 'CException' with message 'CAssetManager.basePath "/usr/bin/assets" is invalid. Please make sure the directory exists and is writable by the Web server process.' in /Applications/MAMP/htdocs/yiiPath/framework/web/CAssetManager.php:112
Stack trace:
#0 /Applications/MAMP/htdocs/yiiPath/framework/web/CAssetManager.php(97): CAssetManager->setBasePath('/usr/bin/assets')
#1 /Applications/MAMP/htdocs/yiiPath/framework/web/CAssetManager.php(207): CAssetManager->getBasePath()
#2 /Applications/MAMP/htdocs/trackstar/protected/extensions/pqp/PQPLogRoute.php(48): CAssetManager->publish('/Applications/M...')
#3 /Applications/MAMP/htdocs/yiiPath/framework/logging/CLogRouter.php(65): PQPLogRoute->init()
#4 /Applications/MAMP/htdocs/yiiPath/framework/base/CModule.php(372): CLogRouter->init()
#5 /Applications/MAMP/htdocs/yiiPath/framework/base/CModule.php(477): CModule->getComponent('log')
#6 /Applications/MAMP/htdocs/yiiPath/framework/base/CApplication.php(142): CModule->preloadComponents()
#7 /Applications in /Applications/MAMP/htdocs/yiiPath/framework/web/CAssetManager.php on line 112
If I comment out the installation in the main.php, the problem go away and unit test works fine. Any suggestions please?
/*
array(
'class' => 'application.extensions.pqp.PQPLogRoute',
'categories' => 'application.*, exception.*',
),
*/
#12
Posted 26 December 2011 - 09:21 AM
coke, on 24 December 2011 - 11:24 AM, said:
PHP Fatal error: Uncaught exception 'CException' with message 'CAssetManager.basePath "/usr/bin/assets" is invalid. Please make sure the directory exists and is writable by the Web server process.' in /Applications/MAMP/htdocs/yiiPath/framework/web/CAssetManager.php:112
Stack trace:
#0 /Applications/MAMP/htdocs/yiiPath/framework/web/CAssetManager.php(97): CAssetManager->setBasePath('/usr/bin/assets')
#1 /Applications/MAMP/htdocs/yiiPath/framework/web/CAssetManager.php(207): CAssetManager->getBasePath()
#2 /Applications/MAMP/htdocs/trackstar/protected/extensions/pqp/PQPLogRoute.php(48): CAssetManager->publish('/Applications/M...')
#3 /Applications/MAMP/htdocs/yiiPath/framework/logging/CLogRouter.php(65): PQPLogRoute->init()
#4 /Applications/MAMP/htdocs/yiiPath/framework/base/CModule.php(372): CLogRouter->init()
#5 /Applications/MAMP/htdocs/yiiPath/framework/base/CModule.php(477): CModule->getComponent('log')
#6 /Applications/MAMP/htdocs/yiiPath/framework/base/CApplication.php(142): CModule->preloadComponents()
#7 /Applications in /Applications/MAMP/htdocs/yiiPath/framework/web/CAssetManager.php on line 112
If I comment out the installation in the main.php, the problem go away and unit test works fine. Any suggestions please?
/*
array(
'class' => 'application.extensions.pqp.PQPLogRoute',
'categories' => 'application.*, exception.*',
),
*/
Sorry to be rude but RTFM there is a note about unit testing in the installation steps
- Extension: XUpload - jQuery File Upload Extension
- Extension: PhpQuickProfiler - A Web Log Router that will help you profile your application
- Extension: XDateView - A Date grouped Grid View
- Extension: Foundation - An easy to use, powerful, and flexible framework for building prototypes and production code on any kind of device.
- Wiki: How to generate Yii like Documentation
- Wiki: How to re enable logging during unit testing
#14
Posted 26 February 2013 - 01:50 AM
#15
Posted 26 February 2013 - 02:50 AM

Help












