Class QueryProfile

Description

Class to assist in profiling queries

Located in /system/classes/queryprofile.php (line 7)


	
			
Variable Summary
mixed $backtrace
mixed $end_time
mixed $query_text
mixed $start_time
Method Summary
static int get_time_in_microseconds ()
QueryProfile __construct (query $query)
void start ()
void stop ()
void __get ( $name)
Variables
mixed $backtrace = '' (line 11)
  • access: public
mixed $end_time (line 9)
  • access: public
mixed $query_text (line 10)
  • access: public
mixed $start_time (line 8)
  • access: public
Methods
static method get_time_in_microseconds (line 50)

Returns an integer representing the current time in microseconds from Epoch

  • return: the number of microseconds since epoch.
  • access: public
static int get_time_in_microseconds ()
Constructor __construct (line 19)

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

  • access: public
QueryProfile __construct (query $query)
  • query $query: SQL being executed
start (line 27)
  • access: public
void start ()
stop (line 31)
  • access: public
void stop ()
__get (line 35)
  • access: public
void __get ( $name)
  • $name

Documentation generated on Thu, 30 Oct 2008 20:31:24 +0100 by phpDocumentor 1.3.2