Fixes to metrics for task splitting.
Collectl based job instrumentation.

If configured, while a job is running collectl will run in record mode (think of this as grabbing top output at specified interval) - either for the whole system or just the job's user.

After the job is complete this whole file can be copied to a specified directory and path saved to be associated with job along with job's PID. This will allow complete time series data of job memory, CPU, IO (limitted without process level I/O logging enabled in kernel) etc... in batch or interactively downstream re-using collectl in playback mode and building a process tree for record PID. Collecting such detailed collectl logs for all jobs on large Galaxy instances could consume hundreds of gigabytes of disk space quickly but would provide

The plugin can also do some of this immediately, and save summary job statistics directly to Galaxy's database - max and mean CPU and memory utilization for instance.

Usage of this plugin requires collectl to be installed both on the Galaxy server and compute nodes. The daemon doesn't need to be running prior to the job and collectl can easily be installed in userland - so it worth considering automating installation and configuration of this dependency if using this plugin.