• Home
Name Date Size #Lines LOC

..--

doc/03-May-2024-7,2206,838

hooks/03-May-2024-303

scripts/03-May-2024-12784

tests/03-May-2024-7,8696,360

trappy/03-May-2024-8,9246,107

.dir-locals.elD03-May-2024217 65

.gitignoreD03-May-202462 65

.travis.ymlD03-May-2024768 3027

LICENSED03-May-202411.1 KiB203169

README.mdD03-May-20242 KiB7042

setup.cfgD03-May-2024104 75

setup.pyD03-May-20242.5 KiB7551

README.md

1TRAPpy [![Build Status](https://travis-ci.org/ARM-software/trappy.svg?branch=master)](https://travis-ci.org/ARM-software/trappy) [![Version](https://img.shields.io/pypi/v/trappy.svg)](https://pypi.python.org/pypi/trappy)
2======
3
4TRAPpy (Trace Analysis and Plotting in Python) is a visualization tool to help
5analyze data generated on a device. It parses ftrace-like logs and creates
6in-memory data structures to be used for plotting and data analysis.
7
8# Installation
9
10The following instructions are for Ubuntu 14.04 LTS but they should
11also work with Debian jessie.  Older versions of Ubuntu or Debian
12(e.g. Ubuntu 12.04 or Debian wheezy) will likely require to install
13more packages from pip as the ones present in Ubuntu 12.04 or Debian
14wheezy will probably be too old.
15
16## Required dependencies
17
18##### Install additional tools required for some tests and functionalities
19
20	$ sudo apt install trace-cmd kernelshark
21
22##### Install the Python package manager
23
24	$ sudo apt install python-pip python-dev
25
26##### Install required python packages
27
28	$ sudo apt install libfreetype6-dev libpng12-dev python-nose
29	$ sudo pip install numpy matplotlib pandas ipython[all]
30
31##### Install TRAPpy
32
33    $ sudo pip install --upgrade trappy
34
35# Quickstart
36
37Now launch the ipython notebook server:
38
39    $ ipython notebook
40
41This should pop up a browser. If it doesn't, open a web browser and go
42to http://localhost:8888/tree/
43
44In the `doc/` folder there's a `00 - Quick start` which describes how to
45run TRAPpy. Other notebooks in that directory describe other functions
46of TRAPpy.
47
48# Documentation
49
50API reference can be found in https://pythonhosted.org/TRAPpy/
51
52# For developers
53
54## Clone the repository
55
56The code of the TRAPpy toolkit with all the supported tests and
57Notebooks can be cloned from the official GitHub repository with this
58command:
59
60    $ git clone https://github.com/ARM-software/trappy.git
61
62## Testing your installation
63
64An easy way to test your installation is to use the `nosetests` command from
65TRAPpy's home directory:
66
67	$ nosetests
68
69If the installation is correct all tests will succeed.
70