PHP Class yii\debug\panels\TimelinePanel

Since: 2.0.7
Author: Dmitriy Bashkarev ([email protected])
Inheritance: extends yii\debug\Panel
Show file Open project: yiisoft/yii2-debug

Public Methods

Method Description
getColors ( ) : array Color indicators item profile, key: percentages of time request, value: hex color
getDetail ( )
getDuration ( ) : float Request duration, milliseconds
getName ( )
getStart ( ) : float Start request, timestamp (obtained by microtime(true))
init ( )
load ( $data )
save ( )
setColors ( array $colors ) Sets color indicators.

Protected Methods

Method Description
getModels ( boolean $refresh = false ) : array Returns an array of models that represents logs of the current request.

Method Details

getColors() public method

Color indicators item profile, key: percentages of time request, value: hex color
public getColors ( ) : array
return array

getDetail() public method

public getDetail ( )

getDuration() public method

Request duration, milliseconds
public getDuration ( ) : float
return float

getModels() protected method

Can be used with data providers, such as \yii\data\ArrayDataProvider.
protected getModels ( boolean $refresh = false ) : array
$refresh boolean if need to build models from log messages and refresh them.
return array models

getName() public method

public getName ( )

getStart() public method

Start request, timestamp (obtained by microtime(true))
public getStart ( ) : float
return float

init() public method

public init ( )

load() public method

public load ( $data )

save() public method

public save ( )

setColors() public method

key: percentages of time request, value: hex color
public setColors ( array $colors )
$colors array