DGPinbaLogRoute Extension
DoubleGIS company presents Yii extensions for pinba. The DGPinbaLogRoute is a Yii Framework plugin that supply profiling your code with pinba extention.
Yii::getLogger()->autoDump = 1; Yii::getLogger()->autoFlush = 1;
'log' => array( 'class' => 'CLogRouter', 'routes' => array( ... array( 'class' => 'application.components.DGPinbaLogRoute', 'enabled' => true, 'levels' => 'profile', 'enableContinuation' => false, // true if you want to combine timers with similar names 'sendTimeTag' => true, // true if you want send current time tag ), ... ), )
Profiling your code as you always do it with Yii:
Yii::beginProfile('timer name', 'category');
// Your_profiled_code();
Yii::endProfile('timer name', 'category');
1.0 Initial release
Be the first person to leave a comment
Please login to leave your comment.