PHP 클래스 DebugKit\DebugMemory

파일 보기 프로젝트 열기: cakephp/debug_kit 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_points array An array of recorded memory use points.

공개 메소드들

메소드 설명
clear ( ) : void Clear out any existing memory points
getAll ( boolean $clear = false ) : array Get all the stored memory points
getCurrent ( ) : integer Get current memory usage
getPeak ( ) : integer Get peak memory use
record ( string $message = null ) : boolean Stores a memory point in the internal tracker.

메소드 상세

clear() 공개 정적인 메소드

Clear out any existing memory points
public static clear ( ) : void
리턴 void

getAll() 공개 정적인 메소드

Get all the stored memory points
public static getAll ( boolean $clear = false ) : array
$clear boolean Whether you want to clear the memory points as well. Defaults to false.
리턴 array Array of memory marks stored so far.

getCurrent() 공개 정적인 메소드

Get current memory usage
public static getCurrent ( ) : integer
리턴 integer number of bytes ram currently in use. 0 if memory_get_usage() is not available.

getPeak() 공개 정적인 메소드

Get peak memory use
public static getPeak ( ) : integer
리턴 integer peak memory use (in bytes). Returns 0 if memory_get_peak_usage() is not available

record() 공개 정적인 메소드

Takes a optional message name which can be used to identify the memory point. If no message is supplied a debug_backtrace will be done to identify the memory point.
public static record ( string $message = null ) : boolean
$message string Message to identify this memory point.
리턴 boolean

프로퍼티 상세

$_points 보호되어 있는 정적으로 프로퍼티

An array of recorded memory use points.
protected static array $_points
리턴 array