Skip to main content

No project description provided

Project description

Plop is a stack-sampling profiler for Python. Profile collection can be turned on and off in a live process with minimal performance impact.

Plop is currently a work in progress and pretty rough around the edges, so be prepared to run into bugs and extremely unrefined interfaces (which are likely to change in backwards-incompatible ways in future releases).

Installation

pip install plop

Prerequisites

The plop.collector module runs on Python 2.5, 2.6, and 2.7 on Unixy platforms including Linux, BSD and Mac OS X (must support the setitimer system call). The plop.viewer module requires Python 2.7 and Tornado 2.x. The viewer can be (and usually is) run separately from the collector.

Usage

In the application to be profiled, create a plop.collector.Collector, call start(), wait, then stop(). Dump collector.stack_counts to a file. See ProfileHandler in demo/busy_server.py for an example of how to trigger profiling via an HTTP interface.

To use the viewer, run:

python -m plop.viewer --datadir=demo/profiles

and go to http://localhost:8888

Example

An end-to-end demo is available in the demo directory. create_profile.sh will run a server (which talks to itself to generate load), generate a profile, and shut it down. view_profile.sh will run the viewer app.

More info

The source code is hosted at https://github.com/bdarnell/plop

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

plop-0.1.tar.gz (70.5 kB view details)

Uploaded Source

plop-0.1.1.tar.gz (70.5 kB view details)

Uploaded Source

File details

Details for the file plop-0.1.tar.gz.

File metadata

  • Download URL: plop-0.1.tar.gz
  • Upload date:
  • Size: 70.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for plop-0.1.tar.gz
Algorithm Hash digest
SHA256 23992ea9bf4f14025a990c15c88e1e66d5d4fe9fd1a42d274fa5b626ec35279d
MD5 418fccde7507bd8917ef45534b2eb494
BLAKE2b-256 732feba43a8355874490a5a953bc09ed781e0f16e567c31ee4243edfd67e3fc6

See more details on using hashes here.

File details

Details for the file plop-0.1.1.tar.gz.

File metadata

  • Download URL: plop-0.1.1.tar.gz
  • Upload date:
  • Size: 70.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for plop-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0cc35883a59adb5e44bc92b38777fd8b27d40c2b751111720e66a34ad6785bfa
MD5 5a5e60c18893c5f827633f2a75ac6cf9
BLAKE2b-256 2a5aa30f1c7b27f2155620c5b98397faecd4a8b7c646ea285011f8f64dd6c7ed

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page