Skip to content

Latest commit

 

History

71 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP extension for Photon

This extension collects data for Photon.

Installation

Extension depends on shared libuuid, so you need it installed:

# Debian
apt-get install libuuid1
# CentOS
yum install libuuid

Building from source

Install dependencies:

# Debian
apt-get install uuid-dev
# CentOS
yum install libuuid-devel

Clone & build:

git clone https://github.com/kozlice/photon-php-ext
cd photon-php-ext
phpize --clean
phpize
./configure
make
make install

Configuration

All values in this example are the defaults.

; Overall extension switch.
photon.enable = 1;

; Default application info. Can be modified at runtime using
; functions provided by the extension.
photon.app_name = "app";
photon.app_version = "0.1.0";
photon.app_env = "dev";

; Path to transaction log.
photon.transaction_log_path = "/var/log/photon-php/transaction.log";

; Whether to enable or not profiling in web and CLI.
photon.profiler_enable = 1;
photon.profiler_enable_cli = 1;

; What fraction of requests should be profiled. Can be a float,
; e.g. `5.8%`.
photon.profiler_sampling_freq = 5%;

About

[WIP] PHP extension for Photon tracer/profiler

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages