PHP Class Beberlei\Metrics\Collector\DoctrineDBAL
The database you connect to has to have a table
named
metrics with columns:
- metric VARCHAR(255)
- measurement INTEGER
- created DATETIME
The Primary key can either be a surrogate (id) or
has to span all 3 columns.
Show file
Open project: beberlei/metrics
Public Methods
Method Details
__construct()
public method
public __construct ( Doctrine\DBAL\Connection $conn ) |
$conn |
Doctrine\DBAL\Connection |
|
decrement()
public method
increment()
public method
public measure ( $variable, $value ) |
public timing ( $stat, $time ) |