Added by Max Baybakov, last edited by Max Baybakov on Apr 23, 2010  (view change)

Labels:

Enter labels to add to this page:
Wait Image 
Looking for a label? Just start typing.

Server usage trace event has following parameters and tokens:

1. Job parameters

These parameters are used to calculate start and end time of the job. Use microtime(true) to set these values.

$start_time - job start time.
$end_time - job end time.

2. Job tokens

[%$job.name%] - job name. 
[%$job.scriptfile%] - path to file from which the job is executed. 
[%$job.time.start%] - start time of the job calculated as date('H:i:s')
[%$job.time.finish%] - end time of the job calculated as date('H:i:s')
[%$job.time.total%] - total job execution time in seconds
[%$job.memory.current%] - PHP memory usage at the moment when event fired
[%$job.memory.peak%] - PHP maximum memory usage during current script execution
[%$job.user.name%] - OS user which has run the script($_ENV['USER'])
[%$job.env_vars%] - $_ENV array
[%$job.included_files%] - list of all the files which had been included when event fired