commit | e6274bd2296229dae5303df8b4226601cc4abdb6 | [log] [tgz] |
---|---|---|
author | Javi Merino <javi.merino@arm.com> | Mon Jul 04 18:46:52 2016 +0100 |
committer | Javi Merino <javi.merino@arm.com> | Wed Jul 06 19:16:08 2016 +0100 |
tree | b6624684f854dd2538df549d29b56219cf89c017 | |
parent | 324d21ac8e40f03897da64a2cd2eda8ff1447e51 [diff] |
ILinePlot: only pass the necessary data when xlim is passed xlim limits the x axis to a given range, but for ILinePlot we pass all the data to dygraph and then let dygraph apply the window. That means that we include a lot of useless data in the notebook and we lose performance parsing data that will never be plotted. Improve xlim for ILinePlot so that it only embeds the data relevant for the plot.
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.