commit | a74ef6f6ee5416e6366bf83a1ddde71bd0b6c7f5 | [log] [tgz] |
---|---|---|
author | Kevin DuBois <kevindubois@google.com> | Mon Oct 23 11:07:15 2017 -0700 |
committer | Kevin DuBois <kevindubois@google.com> | Mon Oct 23 11:09:11 2017 -0700 |
tree | 9c43e07e16ecb77fcdeea6704391533ce7cfe37b | |
parent | a10ee682fdf16d6ff801e726e731d7196a75a809 [diff] |
parse traces from ext4 events Adds trace parsing for ext4_da_write_begin, ext4_da_write_end, ext4_sync_file_enter, and ext4_sync_file_exit events Test: run the 4 new unit tests (nosetests tests/test_filesystem.py) Change-Id: I9b7049d5e9879cc3dedb5fd9d3d1433fa8304618
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.