PHP Class Habari\QueryProfile

Show file Open project: habari/system

Public Properties

Property Type Description
$backtrace SQL text
$end_time time that query started execution
$query_text time that query ended execution
$start_time

Public Methods

Method Description
__construct ( string $query ) Constructor for the query profile. Automatically sets the start time for the query
__get ( $name )
get_time_in_microseconds ( ) : integer Returns an integer representing the current time in microseconds from Epoch
start ( )
stop ( )

Method Details

__construct() public method

Constructor for the query profile. Automatically sets the start time for the query
public __construct ( string $query )
$query string SQL being executed

__get() public method

public __get ( $name )

get_time_in_microseconds() public static method

Returns an integer representing the current time in microseconds from Epoch
public static get_time_in_microseconds ( ) : integer
return integer the number of microseconds since epoch.

start() public method

public start ( )

stop() public method

public stop ( )

Property Details

$backtrace public property

SQL text
public $backtrace

$end_time public property

time that query started execution
public $end_time

$query_text public property

time that query ended execution
public $query_text

$start_time public property

public $start_time