commit | d9f624f5147fa556eef4e472cbd3355c9f178126 | [log] [tgz] |
---|---|---|
author | Xin Li <delphij@google.com> | Fri Dec 07 16:14:42 2018 -0800 |
committer | Xin Li <delphij@google.com> | Fri Dec 07 16:14:42 2018 -0800 |
tree | 2ee6dc8fe789340553a66e15d20aa4d7b8dee2a8 | |
parent | 3744cbb734aa83a1d4f123c1b5adb20e8efd212d [diff] | |
parent | 357e0ceb27780974f4ad75cf493f2b4a350a5850 [diff] |
DO NOT MERGE Merge pie-platform-release (PPRL.181205.001, history only) into master Bug: 120502534 Change-Id: Icf680399c1d836bed4b1ccf06238cb0eaf6bd5a9
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.
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.
$ sudo apt install trace-cmd kernelshark
$ sudo apt install python-pip python-dev
$ sudo apt install libfreetype6-dev libpng12-dev python-nose $ sudo pip install numpy matplotlib pandas ipython[all]
$ sudo pip install --upgrade trappy
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.
API reference can be found in https://pythonhosted.org/TRAPpy/
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
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.