This script obtains resource usage data for your pipeline from the Meadow and stores it in 'worker_resource_usage' table.
    Your Meadow class/plugin has to support offline examination of resources in order for this script to work.

    Based on the start time of the first Worker and end time of the last Worker (as recorded in pipeline DB),
    it pulls the relevant data out of your Meadow (runs 'bacct' script in case of LSF), parses the report and stores in 'worker_resource_usage' table.
    You can join this table to 'worker' table USING(meadow_name,process_id) in the usual MySQL way
    to filter by analysis_id, do various stats, etc.

    You can optionally provide an an external filename or command to get the data from it (don't forget to append a '|' to the end!)
    and then the data will be taken from your source and parsed from there.


        # Just run it the usual way: query and store the relevant data into 'worker_resource_usage' table: -url mysql://username:secret@hostname:port/long_mult_test

        # The same, but assuming another user 'someone_else' ran the pipeline: -url mysql://username:secret@hostname:port/long_mult_test -username someone_else

        # Assuming the dump file existed. Load the dumped bacct data into 'worker_resource_usage' table: -url mysql://username:secret@hostname:port/long_mult_test -source long_mult.bacct

        # Provide your own command to fetch and parse the worker_resource_usage data from: -url mysql://username:secret@hostname:port/long_mult_test -source "bacct -l -C 2012/01/25/13:33,2012/01/25/14:44 |"


    -help                   : print this help
    -url <url string>       : url defining where hive database is located
    -username <username>    : if it wasn't you who ran the pipeline, the name of that user can be provided
    -source <filename>      : alternative source of worker_resource_usage data. Can be a filename or a pipe-from command.


    Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
    Copyright [2016-2020] EMBL-European Bioinformatics Institute

    Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    Unless required by applicable law or agreed to in writing, software distributed under the License
    is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and limitations under the License.


    Please subscribe to the Hive mailing list:  to discuss Hive-related questions or to be notified of our updates