Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Q
question2answer
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
outils
question2answer
Commits
b1d9d397
Commit
b1d9d397
authored
Sep 04, 2014
by
Scott Vivian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DocBlock comments in qa-db.php
parent
1ac995e0
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
Usage.php
qa-include/Q2A/Util/Usage.php
+7
-7
qa-db.php
qa-include/qa-db.php
+0
-0
qa-util-debug.php
qa-include/qa-util-debug.php
+2
-2
No files found.
qa-include/Q2A/Util/Usage.php
View file @
b1d9d397
...
...
@@ -18,7 +18,7 @@ class Q2A_Util_Usage
private
$databaseQueryLog
;
/**
* Initialize the counts of resource usage
* Initialize the counts of resource usage
.
*/
public
function
__construct
()
{
...
...
@@ -30,7 +30,7 @@ class Q2A_Util_Usage
}
/**
* Return an array representing the resource usage as of now
* Return an array representing the resource usage as of now
.
*/
public
function
getCurrent
()
{
...
...
@@ -56,7 +56,7 @@ class Q2A_Util_Usage
}
/**
* Mark the beginning of a new stage of script execution and store usages accordingly
* Mark the beginning of a new stage of script execution and store usages accordingly
.
*/
public
function
mark
(
$stage
)
{
...
...
@@ -66,7 +66,7 @@ class Q2A_Util_Usage
}
/**
* Logs query and updates database usage stats
* Logs query and updates database usage stats
.
*/
public
function
logDatabaseQuery
(
$query
,
$usedtime
,
$gotrows
,
$gotcolumns
)
{
...
...
@@ -86,7 +86,7 @@ class Q2A_Util_Usage
}
/**
* Output an (ugly) block of HTML detailing all resource usage and database queries
* Output an (ugly) block of HTML detailing all resource usage and database queries
.
*/
public
function
output
()
{
...
...
@@ -130,7 +130,7 @@ class Q2A_Util_Usage
/**
* Return the difference between two resource usage arrays, as an array
* Return the difference between two resource usage arrays, as an array
.
*/
private
function
delta
(
$oldusage
,
$newusage
)
{
...
...
@@ -143,7 +143,7 @@ class Q2A_Util_Usage
}
/**
* Return HTML to represent the resource $usage, showing appropriate proportions of $totalusage
* Return HTML to represent the resource $usage, showing appropriate proportions of $totalusage
.
*/
private
function
line
(
$stage
,
$usage
,
$totalusage
)
{
...
...
qa-include/qa-db.php
View file @
b1d9d397
This diff is collapsed.
Click to expand it.
qa-include/qa-util-debug.php
View file @
b1d9d397
...
...
@@ -23,7 +23,7 @@ function qa_usage_get()
function
qa_usage_delta
(
$oldusage
,
$newusage
)
{
// equivalent function is now private
return
null
;
return
array
()
;
}
function
qa_usage_mark
(
$stage
)
...
...
@@ -35,7 +35,7 @@ function qa_usage_mark($stage)
function
qa_usage_line
(
$stage
,
$usage
,
$totalusage
)
{
// equivalent function is now private
return
null
;
return
''
;
}
function
qa_usage_output
()
...
...
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