Public Member Functions | Static Public Member Functions | Public Attributes

QueryProfile Class Reference

List of all members.

Public Member Functions

 __construct ($query)
 start ()
 stop ()
 __get ($name)

Static Public Member Functions

static get_time_in_microseconds ()

Public Attributes

 $start_time
 $end_time
 $query_text
 $backtrace = ''

Detailed Description

Class to assist in profiling queries

Definition at line 14 of file queryprofile.php.


Constructor & Destructor Documentation

QueryProfile::__construct ( query  ) 

Constructor for the query profile. Automatically sets the start time for the query

Parameters:
string $query SQL being executed

Definition at line 27 of file queryprofile.php.


Member Function Documentation

static QueryProfile::get_time_in_microseconds (  )  [static]

Returns an integer representing the current time in microseconds from Epoch

Returns:
int the number of microseconds since epoch.

Definition at line 62 of file queryprofile.php.


The documentation for this class was generated from the following file: