Clone this repo:
  1. d9f624f DO NOT MERGE by Xin Li · 6 years ago main master oreo-mr1-iot-release android-o-mr1-iot-release-1.0.10 android-o-mr1-iot-release-1.0.12 android-o-mr1-iot-release-1.0.13 android-o-mr1-iot-release-1.0.14 android-o-mr1-iot-release-1.0.7 android-o-mr1-iot-release-1.0.8
  2. 3744cbb Merge Android Pie into master am: da847891e1 am: 6edd400c7e by Xin Li · 6 years ago android-o-mr1-iot-release-smart-clock-fcs android-o-mr1-iot-release-smart-clock-fsi android-o-mr1-iot-release-smart-clock-r2 android-o-mr1-iot-release-smart-clock-r6 android-o-mr1-iot-release-smart-display-r14 android-o-mr1-iot-release-smart-display-r22 android-o-mr1-iot-release-smart-display-r30 android-o-mr1-iot-release-smart-display-r39 android-o-mr1-iot-release-smart-display-r4 android-o-mr1-iot-release-smart-display-r40.1J android-o-mr1-iot-release-smart-display-r5 android-o-mr1-iot-release-smart-display-r8 android-o-mr1-iot-release-smart-display-r9 android-wear-8.0.0_r2
  3. 6edd400 Merge Android Pie into master am: da847891e1 by Xin Li · 6 years ago
  4. da84789 Merge Android Pie into master by Xin Li · 6 years ago master-cuttlefish-testing-release oreo-mr1-1.2-iot-release android-o-mr1-iot-release-1.0.3 android-o-mr1-iot-release-1.0.4 android-o-mr1-iot-release-1.0.5 android-o-mr1-iot-release-smart-display-r3
  5. 3dc1670 Merge pi-dev-plus-aosp-without-vendor into stage-aosp-master am: beecbc049b by Xin Li · 7 years ago

TRAPpy Build Status Version

TRAPpy (Trace Analysis and Plotting in Python) is a visualization tool to help analyze data generated on a device. It parses ftrace-like logs and creates in-memory data structures to be used for plotting and data analysis.

Installation

The following instructions are for Ubuntu 14.04 LTS but they should also work with Debian jessie. Older versions of Ubuntu or Debian (e.g. Ubuntu 12.04 or Debian wheezy) will likely require to install more packages from pip as the ones present in Ubuntu 12.04 or Debian wheezy will probably be too old.

Required dependencies

Install additional tools required for some tests and functionalities
$ sudo apt install trace-cmd kernelshark
Install the Python package manager
$ sudo apt install python-pip python-dev
Install required python packages
$ sudo apt install libfreetype6-dev libpng12-dev python-nose
$ sudo pip install numpy matplotlib pandas ipython[all]
Install TRAPpy
$ sudo pip install --upgrade trappy

Quickstart

Now launch the ipython notebook server:

$ ipython notebook

This should pop up a browser. If it doesn't, open a web browser and go to http://localhost:8888/tree/

In the doc/ folder there's a 00 - Quick start which describes how to run TRAPpy. Other notebooks in that directory describe other functions of TRAPpy.

Documentation

API reference can be found in https://pythonhosted.org/TRAPpy/

For developers

Clone the repository

The code of the TRAPpy toolkit with all the supported tests and Notebooks can be cloned from the official GitHub repository with this command:

$ git clone https://github.com/ARM-software/trappy.git

Testing your installation

An easy way to test your installation is to use the nosetests command from TRAPpy's home directory:

$ nosetests

If the installation is correct all tests will succeed.