Benchmark/BufferedFileCounter.php

Classes 
Classes
Kwf_Benchmark_BufferedFileCounter

\Kwf_Benchmark_BufferedFileCounter

Methods
__construct
__destruct
flush
getValue
getValues
increment
update

Description

File based high performance counter

Can be used when Kwf_Benchmark_Counter (which used apc) won't work because a script is run on cli.

Optionally buffers writes to the file - which is useful for long-running scripts or for situations where lots of increments in the same script are expected.

Methods

__construct

__construct(  $config ) :
Arguments
$config
Details
visibility
public
final
false
static
false

__destruct

__destruct( ) :
Details
visibility
public
final
false
static
false

flush

flush( ) :
Details
visibility
public
final
false
static
false

getValue

getValue(  $var ) :
Arguments
$var
Details
visibility
public
final
false
static
false

getValues

getValues( ) :
Details
visibility
public
final
false
static
false

increment

increment(  $var,  $value = 1 ) :
Arguments
$var
$value
Details
visibility
public
final
false
static
false

update

update(  $var,  $value ) :
Arguments
$var
$value
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox 0.12.3.