This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

[![Build Status](https://travis-ci.org/astrofrog/psrecord.png?branch=master)](https://travis-ci.org/astrofrog/psrecord) [![Coverage Status](https://coveralls.io/repos/astrofrog/psrecord/badge.png)](https://coveralls.io/r/astrofrog/psrecord)

About

psrecord is a small utility that uses the [psutil](https://code.google.com/p/psutil/) library to record the CPU and memory activity of a process. The package is still under development and is therefore experimental.

The code is released under a Simplified BSD License, which is given in the LICENSE file.

Requirements

Installation

To install:

git clone https://github.com/astrofrog/psrecord cd psrecord python setup.py install

Usage

Basics

To record the CPU and memory activity of an existing process to a file:

psrecord 1330 –log activity.txt

where 1330 is an example of a process ID which you can find with ps or top. You can also use psrecord to start up a process by specifying the command in quotes:

psrecord “hyperion model.rtin model.rtout” –log activity.txt

Plotting

To make a plot of the activity:

psrecord 1330 –plot plot.png

This will produce a plot such as:

![screenshot](screenshot.png)

You can combine these options to write the activity to a file and make a plot at the same time:

psrecord 1330 –log activity.txt –plot plot.png

Duration and intervals

By default, the monitoring will continue until the process is stopped. You can also specify a maximum duration in seconds:

psrecord 1330 –log activity.txt –duration 10

Finally, the process is polled as often as possible by default, but it is possible to set the time between samples in seconds:

psrecord 1330 –log activity.txt –interval 2

Subprocesses

To include sub-processes in the CPU and memory stats, use:

psrecord 1330 –log activity.txt –include-children

Reporting issues

Please report any issues in the [issue tracker](https://github.com/astrofrog/psrecord/issues).

Release History

Release History

0.2.0

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1.0

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
psrecord-0.2.0.tar.gz (54.5 kB) Copy SHA256 Checksum SHA256 Source Oct 22, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting