PHP Class Rarst\Laps\Laps

Afficher le fichier Open project: rarst/laps

Méthodes publiques

Свойство Type Description
$events
$query_starts
$stopwatch Symfony\Component\Stopwatch\Stopwatch

Méthodes publiques

Méthode Description
add_events ( array $stops ) Hook events by name and priority from array.
admin_bar_menu ( WP_Admin_Bar $wp_admin_bar ) Render interface and add to the toolbar.
after_setup_theme ( ) When theme is done possibly add vendor-specific events.
enqueue_scripts ( )
http_api_debug ( array | WP_Error $response, string $type, object $class, array $args, string $url ) : mixed Capture end time of HTTP request
init ( )
on_load ( ) Start Stopwatch and timing plugin load immediately, then set up core events and needed hooks.
pre_http_request ( boolean $false, array $args, string $url ) : boolean Capture start time of HTTP request
pre_update_option_active_plugins ( array $plugins ) : array Reorder active plugins so Laps is first and starts timing load early.
query ( string $query ) : string Capture SQL queries start times
tick ( mixed $input = null ) : mixed Mark action for the event on Stopwatch.

Method Details

add_events() public static méthode

Hook events by name and priority from array.
public static add_events ( array $stops )
$stops array

admin_bar_menu() public static méthode

Render interface and add to the toolbar.
public static admin_bar_menu ( WP_Admin_Bar $wp_admin_bar )
$wp_admin_bar WP_Admin_Bar

after_setup_theme() public static méthode

When theme is done possibly add vendor-specific events.
public static after_setup_theme ( )

enqueue_scripts() public static méthode

public static enqueue_scripts ( )

http_api_debug() public static méthode

Capture end time of HTTP request
public static http_api_debug ( array | WP_Error $response, string $type, object $class, array $args, string $url ) : mixed
$response array | WP_Error
$type string
$class object
$args array
$url string
Résultat mixed

init() public static méthode

public static init ( )

on_load() public static méthode

Start Stopwatch and timing plugin load immediately, then set up core events and needed hooks.
public static on_load ( )

pre_http_request() public static méthode

Capture start time of HTTP request
public static pre_http_request ( boolean $false, array $args, string $url ) : boolean
$false boolean
$args array
$url string
Résultat boolean

pre_update_option_active_plugins() public static méthode

Reorder active plugins so Laps is first and starts timing load early.
public static pre_update_option_active_plugins ( array $plugins ) : array
$plugins array
Résultat array

query() public static méthode

Capture SQL queries start times
public static query ( string $query ) : string
$query string
Résultat string

tick() public static méthode

Mark action for the event on Stopwatch.
public static tick ( mixed $input = null ) : mixed
$input mixed pass through if added to filter
Résultat mixed

Property Details

$events public_oe static_oe property

public static $events

$query_starts public_oe static_oe property

public static $query_starts

$stopwatch public_oe static_oe property

public static Stopwatch,Symfony\Component\Stopwatch $stopwatch
Résultat Symfony\Component\Stopwatch\Stopwatch