{eac}Doojigger Reference

eacDoojiggerActionTimer

{eac}DoojiggerActionTimer - {eac}Doojigger for WordPress, Track the time to load (include) each plugin; Track duration of specific WP actions; Ability to time custom functions execution

Tags
category

WordPress Plugin

author

Kevin Burkholder KBurkholder@EarthAsylum.com

copyright

Copyright (c) 2023 EarthAsylum Consulting <www.EarthAsylum.com>

version
1.x
link
https://eacDoojigger.earthasylum.com/

Table of Contents

FORMAT_TIME  = 'm-d H:i:s.u'
addActionTimeStart()  : void
Actions Triggered - Start
addActionTimeStop()  : void
Actions Triggered - Stop
addPluginTime()  : void
Plugins Loaded
getArray()  : array<string|int, mixed>
Return data array
getJSON()  : string
Return data array in JSON format
loadPlugin()  : void
Track time of loading plugins and specific actions to identify potential holdups
shutdown()  : void
Fire an action on shutdown
start()  : void
start a user timer
stop()  : array<string|int, mixed>
end a user timer
timeAction()  : void
Add action(s) to track

Constants

Methods

addPluginTime()

Plugins Loaded

public static addPluginTime(string $plugin) : void
Parameters
$plugin : string

plugin file name

Return values
void

getArray()

Return data array

public static getArray() : array<string|int, mixed>
Return values
array<string|int, mixed>

data array

getJSON()

Return data array in JSON format

public static getJSON() : string
Return values
string

json formatted data array

loadPlugin()

Track time of loading plugins and specific actions to identify potential holdups

public static loadPlugin() : void
Return values
void

stop()

end a user timer

public stop(string $id) : array<string|int, mixed>
Parameters
$id : string

timer id

Return values
array<string|int, mixed>

$id => [Start, Stop, Duration, Memory]

timeAction()

Add action(s) to track

public static timeAction(string|array<string|int, mixed> $hook) : void
Parameters
$hook : string|array<string|int, mixed>

action hook names(s)

Return values
void

Search results