PHP 인터페이스 Zumba\Swivel\MetricsInterface

파일 보기 프로젝트 열기: zumba/swivel

공개 메소드들

메소드 설명
count ( string $context, string $source, integer $value = 1, string $metric = '' ) Send a count.
decrement ( string $context, string $source, string $metric = '' ) Decrement a metric by 1.
endMemoryProfile ( string $context, string $source, string $metric = '' ) End the memory profiling and send the value.
endTiming ( string $context, string $source, string $metric = '' ) End the timing for a metric and send the value.
gauge ( string $context, string $source, integer $value, string $metric = '' ) Send a gauged metric.
increment ( string $context, string $source, string $metric = '' ) Increment the metric by 1.
memory ( string $context, string $source, integer | null $memory = null, string $metric = '' ) Report memory usage.
set ( string $context, string $source, integer $value, string $metric = '' ) Send a unique metric.
setNamespace ( string $namespace = self::DEFAULT_NAMESPACE ) Set the slug namespace.
startMemoryProfile ( string $context, string $source, string $metric = '' ) Start memory "profiling".
startTiming ( string $context, string $source, string $metric = '' ) Starts timing a metric.
time ( string $context, string $source, Closure $func, string $metric = '' ) : mixed Execute, measure execution time, and return a \Closure's return value.
timing ( string $context, string $source, integer $value, string $metric = '' ) Send a timing metric.

메소드 상세

count() 공개 메소드

Send a count.
public count ( string $context, string $source, integer $value = 1, string $metric = '' )
$context string
$source string
$value integer
$metric string

decrement() 공개 메소드

Decrement a metric by 1.
public decrement ( string $context, string $source, string $metric = '' )
$context string
$source string
$metric string

endMemoryProfile() 공개 메소드

End the memory profiling and send the value.
public endMemoryProfile ( string $context, string $source, string $metric = '' )
$context string
$source string
$metric string

endTiming() 공개 메소드

End the timing for a metric and send the value.
public endTiming ( string $context, string $source, string $metric = '' )
$context string
$source string
$metric string

gauge() 공개 메소드

Send a gauged metric.
public gauge ( string $context, string $source, integer $value, string $metric = '' )
$context string
$source string
$value integer
$metric string

increment() 공개 메소드

Increment the metric by 1.
public increment ( string $context, string $source, string $metric = '' )
$context string
$source string
$metric string

memory() 공개 메소드

If $memory is null, report peak usage
public memory ( string $context, string $source, integer | null $memory = null, string $metric = '' )
$context string
$source string
$memory integer | null
$metric string

set() 공개 메소드

Send a unique metric.
public set ( string $context, string $source, integer $value, string $metric = '' )
$context string
$source string
$value integer
$metric string

setNamespace() 공개 메소드

Set the slug namespace.
public setNamespace ( string $namespace = self::DEFAULT_NAMESPACE )
$namespace string

startMemoryProfile() 공개 메소드

Start memory "profiling".
public startMemoryProfile ( string $context, string $source, string $metric = '' )
$context string
$source string
$metric string

startTiming() 공개 메소드

Starts timing a metric.
public startTiming ( string $context, string $source, string $metric = '' )
$context string
$source string
$metric string

time() 공개 메소드

Execute, measure execution time, and return a \Closure's return value.
public time ( string $context, string $source, Closure $func, string $metric = '' ) : mixed
$context string
$source string
$func Closure
$metric string
리턴 mixed

timing() 공개 메소드

Send a timing metric.
public timing ( string $context, string $source, integer $value, string $metric = '' )
$context string
$source string
$value integer
$metric string