PHP Класс Webgrind_FileHandler, webgrind

Автор: Jacob Oettinger
Автор: Joakim Nygård
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
getInstance ( ) : Singleton
getTraceList ( ) : array Get list of available trace files. Optionally including traces of the webgrind script it self
getTraceReader ( $file, $costFormat ) : Webgrind_Reader Get a trace reader for the specific file.

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

Метод Описание
__construct ( )
bytestostring ( integer $size, integer $precision ) : string Present a size (in bytes) as a human-readable value
getFiles ( $format, $dir ) : array List of files in $dir whose filename has the format $format
getInvokeUrl ( $file ) : void Get the value of the cmd header in $file
getPrepFiles ( $format, $dir ) : array List of files in $dir whose filename has the format $format
mtimeCmp ( $a, $b ) : boolean Comparison function for sorting

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

getInstance() публичный статический Метод

public static getInstance ( ) : Singleton
Результат Singleton instance of the filehandler

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

Get list of available trace files. Optionally including traces of the webgrind script it self
public getTraceList ( ) : array
Результат array Files

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

If the file has not been preprocessed yet this will be done first.
public getTraceReader ( $file, $costFormat ) : Webgrind_Reader
Результат Webgrind_Reader Reader for $file