External instance of adaptyst-server
Adaptyst runs adaptyst-server internally by default, which means that both profiling and profiling data processing are performed on the same machine. However, you can delegate the processing to an external instance of adaptyst-server running e.g. on a separate machine.
To do this, run adaptyst-server
first on the machine where you want the processing to be done and note down the IP address and port it prints. If you want to specify extra options (e.g. a custom IP address and/or port), look at the output of adaptyst-server --help
.
Help message printed by adaptyst-server --help
adaptyst-server: the processing server for Adaptyst
Usage: adaptyst-server [OPTIONS]
Options:
-h,--help Print this help message and exit
-v,--version Print version and exit
-a TEXT Address to bind to (default: 127.0.0.1)
-p UINT Port to bind to (default: 5000)
-m UINT Max simultaneous connections to accept
(default: 1, use 0 to exit after the first
client)
-b UINT Buffer size for communication with clients
in bytes (default: 1024)
-t UINT Timeout for receiving file data from
clients in seconds (default: 30)
-q Do not print anything except
non-port-in-use errors
Afterwards, run the following command on the machine with your program to be profiled:
adaptyst -a <IP address>:<port> "<command to be profiled>"
or
adaptyst -a <IP address>:<port> -- <command to be profiled>
(you are free to specify extra options as well)
When Adaptyst finishes profiling, all results will be stored on the machine running adaptyst-server
(not the machine with the profiled program).