PHP 클래스 Webgrind_FileHandler, webgrind

저자: Jacob Oettinger
저자: Joakim Nygård
파일 보기 프로젝트 열기: jokkedk/webgrind 1 사용 예제들

공개 메소드들

메소드 설명
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