← 输入框|github.com|刷新
Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 838 Bytes

debugging.rst

File metadata and controls

26 lines (19 loc) · 838 Bytes

Debugging

Remote Script Templates

PHPBench renders a template to produce the benchmarking script and to gather information about the benchmark execution environment. By default this will be rendered in your system's temporary directory and subsequently removed.

This makes it difficult to inspect the rendered template.

By adding the following configuration in your phpbench.json you can render this template in a local directory and ensure that it is not deleted.

{
    "$schema":"./vendor/phpbench/phpbench/phpbench.schema.json",
    "runner.remote_script_path": ".phpbench/script",
    "runner.remote_script_remove": false
}

Each remove will be rendered in this directory and can be executed with php .phpbench/script/remote.template for example.