Method | Description | |
---|---|---|
__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 |
Method | Description | |
---|---|---|
init ( ) : void | Initializes the parser by reading initial information. | |
read ( $numbers = 1 ) | ||
readLine ( ) | ||
seek ( $offset, $whence = SEEK_SET ) |
public getCalledFromInfo ( $functionNr, $calledFromNr ) : array | ||
$functionNr | int Function number | |
$calledFromNr | int Called from position nr | |
return | array | Called from information |
public getFunctionCount ( ) : integer | ||
return | integer |
public getFunctionInfo ( $nr ) : array | ||
$nr | int Function number | |
return | array | Function information |
public getSubCallInfo ( $functionNr, $subCallNr ) : array | ||
$functionNr | int Function number | |
$subCallNr | int Sub call position nr | |
return | array | Sub call information |