PHP 클래스 Ubench

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
파일 보기 프로젝트 열기: timetoogo/penumbra 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$end_time
$memory_usage
$start_time

공개 메소드들

메소드 설명
end ( ) : void Sets end microtime
getMemoryPeak ( $raw = false, string $format = null ) : string | float Returns the memory peak, readable or not
getMemoryUsage ( $raw = false, string $format = null ) : string | float Returns the memory usage at the end checkpoint
getTime ( $raw = false, string $format = null ) : string | float Returns the elapsed time, readable or not
readableElapsedTime ( float $microtime, string $format = null, $round = 3 ) : string Returns a human readable elapsed time
readableSize ( integer $size, string $format = null, integer $round = 3 ) : string Returns a human readable memory size
start ( ) : void Sets start microtime

메소드 상세

end() 공개 메소드

Sets end microtime
public end ( ) : void
리턴 void

getMemoryPeak() 공개 메소드

Returns the memory peak, readable or not
public getMemoryPeak ( $raw = false, string $format = null ) : string | float
$format string The format to display (printf format)
리턴 string | float

getMemoryUsage() 공개 메소드

Returns the memory usage at the end checkpoint
public getMemoryUsage ( $raw = false, string $format = null ) : string | float
$format string The format to display (printf format)
리턴 string | float

getTime() 공개 메소드

Returns the elapsed time, readable or not
public getTime ( $raw = false, string $format = null ) : string | float
$format string The format to display (printf format)
리턴 string | float

readableElapsedTime() 공개 정적인 메소드

Returns a human readable elapsed time
public static readableElapsedTime ( float $microtime, string $format = null, $round = 3 ) : string
$microtime float
$format string The format to display (printf format)
리턴 string

readableSize() 공개 정적인 메소드

Returns a human readable memory size
public static readableSize ( integer $size, string $format = null, integer $round = 3 ) : string
$size integer
$format string The format to display (printf format)
$round integer
리턴 string

start() 공개 메소드

Sets start microtime
public start ( ) : void
리턴 void

프로퍼티 상세

$end_time 보호되어 있는 프로퍼티

protected $end_time

$memory_usage 보호되어 있는 프로퍼티

protected $memory_usage

$start_time 보호되어 있는 프로퍼티

protected $start_time