Class yii\debug\panels\TimelinePanel

Inheritanceyii\debug\panels\TimelinePanel » yii\debug\Panel » yii\base\Component
Available since version2.0.7

Debugger panel that collects and displays timeline data.

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$actions array Array of actions to add to the debug modules default controller. yii\debug\Panel
$data mixed Data associated with panel yii\debug\Panel
$id string Panel unique identifier. yii\debug\Panel
$module yii\debug\Module yii\debug\Panel
$tag string Request data set identifier. yii\debug\Panel

Public Methods

Hide inherited methods

MethodDescriptionDefined By
getColors() Color indicators item profile, key: percentages of time request, value: hex color yii\debug\panels\TimelinePanel
getDetail() yii\debug\panels\TimelinePanel
getDuration() Request duration, milliseconds yii\debug\panels\TimelinePanel
getMemory() Memory peak in request, bytes. (obtained by memory_get_peak_usage()) yii\debug\panels\TimelinePanel
getName() yii\debug\panels\TimelinePanel
getStart() Start request, timestamp (obtained by microtime(true)) yii\debug\panels\TimelinePanel
getSummary() yii\debug\Panel
getSvg() yii\debug\panels\TimelinePanel
getSvgOptions() yii\debug\panels\TimelinePanel
getTraceLine() Returns a trace line yii\debug\Panel
getUrl() yii\debug\Panel
init() yii\debug\panels\TimelinePanel
load() Loads data into the panel yii\debug\panels\TimelinePanel
save() Saves data to be later used in debugger detail view. yii\debug\panels\TimelinePanel
setColors() Sets color indicators. yii\debug\panels\TimelinePanel
setSvgOptions() yii\debug\panels\TimelinePanel

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
getModels() Returns an array of models that represents logs of the current request. yii\debug\panels\TimelinePanel

Method Details

getColors() public method

Color indicators item profile, key: percentages of time request, value: hex color

public array getColors ( )
getDetail() public method

public string getDetail ( )
return string

Content that is displayed in debugger detail view

getDuration() public method

Request duration, milliseconds

public float getDuration ( )
getMemory() public method (available since version 2.0.8)

Memory peak in request, bytes. (obtained by memory_get_peak_usage())

public integer getMemory ( )
getModels() protected method

Returns an array of models that represents logs of the current request.

Can be used with data providers, such as \yii\data\ArrayDataProvider.

protected array getModels ( $refresh false )
$refresh boolean

If need to build models from log messages and refresh them.

return array

Models

getName() public method

public string getName ( )
return string

Name of the panel

getStart() public method

Start request, timestamp (obtained by microtime(true))

public float getStart ( )
getSvg() public method (available since version 2.0.8)

public yii\debug\models\timeline\Svg getSvg ( )
getSvgOptions() public method

public array getSvgOptions ( )
init() public method

public void init ( )
load() public method

Loads data into the panel

public void load ( $data )
$data mixed
save() public method

Saves data to be later used in debugger detail view.

This method is called on every page where debugger is enabled.

public mixed save ( )
return mixed

Data to be saved

setColors() public method

Sets color indicators.

key: percentages of time request, value: hex color

public void setColors ( $colors )
$colors array
setSvgOptions() public method

public void setSvgOptions ( $options )
$options array