The Tideways Run Command
To profile a PHP script, say
myscript.php, that is part of the Profiler organization and project
myorg/myapp17, you call:
tideways run myorg/myapp17 php myscript.php
To profile a Web/REST API with cURL for the organization and project
myorg/myapp17 you call:
tideways run myorg/myapp17 curl "http://myapp17.local/api/test"
With httpie the command becomes:
tideways run myorg/myapp17 http "http://myapp17.local/api/test"
tideways command acts as a proxy and you can call any command with arbitrary options and arguments.
The only thing that
tideways does is add an environment variable
TIDEWAYS_SESSION that PHP scripts with the Tideways PHP Extension react to.
These optional flags are available and can set be after the run command:
(optional) Print trace results as text or json. (default "text")
(optional) Render stdout/stderr from command on screen.
(optional) Seconds (default 100)
Example with optional flags
tideways run --sampling=80 --format="json" myorg/myapp17 php myscript.php