Skip to content

Latest commit

 

History

History
 
 

python

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

This folder contains the Python instrumentation module.

Installation

Requires that setuptools is installed (comes with pip).

You can either:

  1. Install all Palanteer components with CMake (see ./INSTALL.md)
    Indeed, this library is part of the global installation (target "python_instrumentation").
    The installation in this case is for the current user only, so that no privilege rights are required.

or

  1. Run the command below from this folder:
    python setup.py install --user (for current user only)
    or
    python setup.py install (for all users, it requires root privilege on Linux)

Usage

Profiling can be done:

  1. With unmodified code: python -m palanteer [options] <your script>

    This syntax is similar to the cProfile usage and no script modification is required.
    By default, it tries to connect to a Palanteer server. With options, offline profiling can be selected.
    Launch python -m palanteer for help or refer to the documentation.

  2. With code instrumentation:

    Please refer to the documentation for details.
    Manual instrumentation can provide additional valuable information compared to just the automatic function profiling, like data, locks, ...