Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
UserAdminV2
Overview
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
庄欣
UserAdminV2
Commits
52f98b7c
Commit
52f98b7c
authored
Jun 25, 2012
by
Franz Liedke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use start_time attribute like a static attribute (as it is).
parent
c7412309
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
laravel/profiling/profiler.php
+3
-3
No files found.
laravel/profiling/profiler.php
View file @
52f98b7c
...
...
@@ -37,9 +37,9 @@ class Profiler {
// type applications, so we will not send anything in those scenarios.
if
(
!
Request
::
ajax
())
{
if
(
$this
->
start_time
)
if
(
static
::
$
start_time
)
{
static
::
$data
[
'time'
]
=
number_format
((
microtime
(
true
)
-
$this
->
start_time
)
*
1000
,
2
);
static
::
$data
[
'time'
]
=
number_format
((
microtime
(
true
)
-
static
::
$
start_time
)
*
1000
,
2
);
}
return
render
(
'path: '
.
__DIR__
.
'/template'
.
BLADE_EXT
,
static
::
$data
);
}
...
...
@@ -81,7 +81,7 @@ class Profiler {
public
static
function
attach
()
{
// Record when the profiler was setup (as a rough measure for render time)
$this
->
start_time
=
microtime
(
true
);
static
::
$
start_time
=
microtime
(
true
);
// First we'll attach to the query and log events. These allow us to catch
// all of the SQL queries and log messages that come through Laravel,
...
...
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