Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
a1e51146
Commit
a1e51146
authored
Jan 03, 2014
by
Luciano Baraglia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some debug code style fixes, and…
Some debug code style fixes, and
https://github.com/yiisoft/yii2/issues/1478#issuecomment-31446267
fix
parent
239778ef
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
7 deletions
+7
-7
DefaultController.php
extensions/yii/debug/controllers/DefaultController.php
+0
-0
DbPanel.php
extensions/yii/debug/panels/DbPanel.php
+3
-3
LogPanel.php
extensions/yii/debug/panels/LogPanel.php
+3
-3
ProfilingPanel.php
extensions/yii/debug/panels/ProfilingPanel.php
+0
-0
detail.php
extensions/yii/debug/views/default/panels/request/detail.php
+0
-0
view.php
extensions/yii/debug/views/default/view.php
+1
-1
No files found.
extensions/yii/debug/controllers/DefaultController.php
View file @
a1e51146
extensions/yii/debug/panels/DbPanel.php
View file @
a1e51146
...
...
@@ -42,7 +42,7 @@ class DbPanel extends Panel
$queryCount
=
count
(
$timings
);
$queryTime
=
number_format
(
$this
->
getTotalQueryTime
(
$timings
)
*
1000
)
.
' ms'
;
return
Yii
::
$app
->
view
->
render
(
'panels/db/summary'
,
[
return
Yii
::
$app
->
view
->
render
(
'panels/db/summary'
,
[
'timings'
=>
$this
->
calculateTimings
(),
'panel'
=>
$this
,
'queryCount'
=>
$queryCount
,
...
...
@@ -112,9 +112,9 @@ class DbPanel extends Panel
$this
->
_models
[]
=
[
'type'
=>
$this
->
detectQueryType
(
$dbTiming
[
'info'
]),
'query'
=>
$dbTiming
[
'info'
],
'duration'
=>
(
$dbTiming
[
'duration'
]
*
1000
),
#
in milliseconds
'duration'
=>
(
$dbTiming
[
'duration'
]
*
1000
),
//
in milliseconds
'trace'
=>
$dbTiming
[
'trace'
],
'timestamp'
=>
$dbTiming
[
'timestamp'
],
'timestamp'
=>
(
$dbTiming
[
'timestamp'
]
*
1000
),
// in milliseconds
'seq'
=>
$seq
,
];
}
...
...
extensions/yii/debug/panels/LogPanel.php
View file @
a1e51146
...
...
@@ -41,7 +41,7 @@ class LogPanel extends Panel
$searchModel
=
new
Log
();
$dataProvider
=
$searchModel
->
search
(
Yii
::
$app
->
request
->
get
(),
$this
->
getModels
());
return
Yii
::
$app
->
view
->
render
(
'panels/log/detail'
,
[
return
Yii
::
$app
->
view
->
render
(
'panels/log/detail'
,
[
'dataProvider'
=>
$dataProvider
,
'panel'
=>
$this
,
'searchModel'
=>
$searchModel
,
...
...
@@ -61,7 +61,7 @@ class LogPanel extends Panel
* @param boolean $refresh if needed to build models from log messages and refresh them.
* @return array models
*/
protected
function
getModels
(
$refresh
=
false
)
protected
function
getModels
(
$refresh
=
false
)
{
if
(
$this
->
_models
===
null
||
$refresh
)
{
$this
->
_models
=
[];
...
...
@@ -71,7 +71,7 @@ class LogPanel extends Panel
'message'
=>
$message
[
0
],
'level'
=>
$message
[
1
],
'category'
=>
$message
[
2
],
'time'
=>
(
$message
[
3
]
*
1000
),
#
time in milliseconds
'time'
=>
(
$message
[
3
]
*
1000
),
//
time in milliseconds
'trace'
=>
$message
[
4
]
];
}
...
...
extensions/yii/debug/panels/ProfilingPanel.php
View file @
a1e51146
extensions/yii/debug/views/default/panels/request/detail.php
View file @
a1e51146
extensions/yii/debug/views/default/view.php
View file @
a1e51146
...
...
@@ -18,7 +18,7 @@ $this->title = 'Yii Debugger';
<div
class=
"default-view"
>
<div
id=
"yii-debug-toolbar"
>
<div
class=
"yii-debug-toolbar-block title"
>
<?
php
echo
Html
::
a
(
'Yii Debugger'
,
[
'index'
],[
'title'
=>
'Back to main debug page'
]);
?>
<?
=
Html
::
a
(
'Yii Debugger'
,
[
'index'
],
[
'title'
=>
'Back to main debug page'
])
?>
</div>
<?php
foreach
(
$panels
as
$panel
)
:
?>
<?=
$panel
->
getSummary
()
?>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment