PHP Класс Webgrind_Reader, webgrind

Автор: Jacob Oettinger
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( $dataFile, $costFormat ) Constructor
formatCost ( integer $cost, string $format = null ) : integer Formats $cost using the format in $this->costFormat or optionally the format given as input
getCalledFromInfo ( $functionNr, $calledFromNr ) : array Returns information about positions where a function has been called from
getFunctionCount ( ) : integer Returns number of functions
getFunctionInfo ( $nr ) : array Returns information about function with nr $nr
getHeader ( $header ) : string Returns value of a single header
getSubCallInfo ( $functionNr, $subCallNr ) : array Returns information about functions called by a function

Приватные методы

Метод Описание
init ( ) : void Initializes the parser by reading initial information.
read ( $numbers = 1 )
readLine ( )
seek ( $offset, $whence = SEEK_SET )

Описание методов

__construct() публичный Метод

Constructor
public __construct ( $dataFile, $costFormat )

formatCost() публичный Метод

Formats $cost using the format in $this->costFormat or optionally the format given as input
public formatCost ( integer $cost, string $format = null ) : integer
$cost integer Cost
$format string 'percent', 'msec' or 'usec'
Результат integer Formatted cost

getCalledFromInfo() публичный Метод

Returns information about positions where a function has been called from
public getCalledFromInfo ( $functionNr, $calledFromNr ) : array
$functionNr int Function number
$calledFromNr int Called from position nr
Результат array Called from information

getFunctionCount() публичный Метод

Returns number of functions
public getFunctionCount ( ) : integer
Результат integer

getFunctionInfo() публичный Метод

Returns information about function with nr $nr
public getFunctionInfo ( $nr ) : array
$nr int Function number
Результат array Function information

getHeader() публичный Метод

Returns value of a single header
public getHeader ( $header ) : string
Результат string Header value

getSubCallInfo() публичный Метод

Returns information about functions called by a function
public getSubCallInfo ( $functionNr, $subCallNr ) : array
$functionNr int Function number
$subCallNr int Sub call position nr
Результат array Sub call information