From the Shell with the Tideways CLI
With the tideways CLI tool, you can trigger traces directly from the shell by wrapping any cURL, httpie or php commands.
See installing the Tideways command line tool, before you read the following examples.
You can generate traces for REST-APIs by sending an additional header. the
command line client does
this automatically, passing the necessary HTTP Headers to either
http (httpie) programs:
tideways run acme/myapp42 curl http://myapp42/api/call
To generate a trace for a command-line PHP script using the command line client will automatically pass the necessary environment variables to the PHP script to trigger the profiling.
tideways run acme/myapp42 php app/console slow:command