Produce a time chart of the jobs ran by GNU parallel
Project description
Plotting time tables for jobs ran by GNU Parallel
=================================================
The program ``print_joblog`` produces a textual representation of the
time required by a sequence of jobs ran by GNU parallel
(http://www.gnu.org/software/parallel/).
To use it, call GNU Parallel with the ``--joblog`` option::
$ parallel --joblog log.txt ...[all the other parameters]...
After the file ``log.txt`` has been created, run ``plot_joblog`` on it::
$ plot_joblog log.txt
(You do not have to wait till ``parallel`` has exited to run
``plot_joblog``.)
Installing the program
----------------------
Move in the source directory and run the following command::
$ python3 setup.py install
Example
-------
Here is an example of the output::
$ plot_joblog -w 20 joblog_example.txt
1: |#### |
2: |####################|
3: |######## |
4: |### |
5: | ################ |
6: | ########### |
$
Output can be customized by means of the following parameters:
- ``--width`` specifies the overall width of each bar, in characters.
- ``--space`` allows to set up the character used to fill the
background of the bar.
- ``--fill`` allows to specify the character to be used to fill the
bars.
A nice choice for UTF-8 terminals is to use the character \u2588 (``█``)
for filling the bars::
$ plot_joblog -w 20 --fill='█' joblog_example.txt
1: |████ |
2: |████████████████████|
3: |████████ |
4: |███ |
5: | ████████████████ |
6: | ███████████ |
$
Run ``plot_joblog --help`` to see all the options provided by the
program.
License
-------
This program is released under the MIT license.
=================================================
The program ``print_joblog`` produces a textual representation of the
time required by a sequence of jobs ran by GNU parallel
(http://www.gnu.org/software/parallel/).
To use it, call GNU Parallel with the ``--joblog`` option::
$ parallel --joblog log.txt ...[all the other parameters]...
After the file ``log.txt`` has been created, run ``plot_joblog`` on it::
$ plot_joblog log.txt
(You do not have to wait till ``parallel`` has exited to run
``plot_joblog``.)
Installing the program
----------------------
Move in the source directory and run the following command::
$ python3 setup.py install
Example
-------
Here is an example of the output::
$ plot_joblog -w 20 joblog_example.txt
1: |#### |
2: |####################|
3: |######## |
4: |### |
5: | ################ |
6: | ########### |
$
Output can be customized by means of the following parameters:
- ``--width`` specifies the overall width of each bar, in characters.
- ``--space`` allows to set up the character used to fill the
background of the bar.
- ``--fill`` allows to specify the character to be used to fill the
bars.
A nice choice for UTF-8 terminals is to use the character \u2588 (``█``)
for filling the bars::
$ plot_joblog -w 20 --fill='█' joblog_example.txt
1: |████ |
2: |████████████████████|
3: |████████ |
4: |███ |
5: | ████████████████ |
6: | ███████████ |
$
Run ``plot_joblog --help`` to see all the options provided by the
program.
License
-------
This program is released under the MIT license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
plot_joblog-1.0.0.tar.gz
(3.9 kB
view hashes)
Built Distribution
Close
Hashes for plot_joblog-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83c4b46fce8967b7aa880cac3815f842cccec985fe19403e1db341cf692717b8 |
|
MD5 | a510b90d769009083894675d4e909851 |
|
BLAKE2b-256 | fd3a8cd18eb082b680b789ec29047ae5b253cd77b9c896f29538fb61e6c26331 |