Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Added in an example to the profiling section #1496

Merged
merged 1 commit into from

2 participants

@acorncom

I find I regularly need to look this info up under the CProfileLogRoute page, so thought this might save people some time.

@qiangxue qiangxue merged commit 81a7ed3 into yiisoft:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 28, 2012
  1. @acorncom
This page is out of date. Refresh to see the latest.
Showing with 23 additions and 0 deletions.
  1. +23 −0 docs/guide/topics.logging.txt
View
23 docs/guide/topics.logging.txt
@@ -197,6 +197,29 @@ component with a [CProfileLogRoute] log route. This is the same as we do
with normal message routing. The [CProfileLogRoute] route will display the
performance results at the end of the current page.
+~~~
+[php]
+array(
+ ......
+ 'preload'=>array('log'),
+ 'components'=>array(
+ ......
+ 'log'=>array(
+ 'class'=>'CLogRouter',
+ 'routes'=>array(
+ array(
+ 'class'=>'CProfileLogRoute',
+ 'report'=>'summary',
+ // lists execution time of every marked code block
+ // report can also be set to callstack
+ ),
+ ...other log routes...
+ ),
+ ),
+ ),
+)
+~~~
+
Profiling SQL Executions
------------------------
Something went wrong with that request. Please try again.