Skip to content

Parse output from the top utility and produce a more usefully structured output. Deal with multiple processes of interest.

License

Notifications You must be signed in to change notification settings

shearichard/parse-top-line

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ptl : Parse Top Line

Parses the output of the top utility when top has been run in batch mode. The end result is easier to make sense of for a human and better suited to later processing.

As it currently exists this project is very specific to my needs which centre upon comparing the memory usage of two different modes of running an executable. In one mode the executable is asked to do all the processing necessary in one go, in the second mode things are arranged so that the executable is asked to run three times and each time part of the necessary processing is completed. It's unlikely these are your requirements but perhaps this project might help you if you have related needs.

configconstants File

The ptl.py module is dependent upon a module configconstants.py which is not saved in the repository.

The structure of that module is as follows and you may add whatever data is relevant to your needs.

DIRDATA='''../data/dirwithoutputin/'''
TOPLOGBASELINE='''top-output-baseline.log'''
TOPLOGSERIAL='''top-output-serial.log'''

Environment

This project makes use of pipenv, see the documentation for usage directions - https://pipenv.pypa.io/en/latest/basics/ .

This project has been tested against Python 3.7 and 3.8 on Ubuntu.

About

Parse output from the top utility and produce a more usefully structured output. Deal with multiple processes of interest.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages