trappy: partially revert 8da875103915

In 8da875103915 ("ftrace: fix error with only one actor") we made
ftrace.plot_allfreqs() treat the case when there's only one actor a
special case that ignored the requirement of the "ax" parameter being an
array.  The documentation of plot_allfreqs() is correct: if ax is not
None, it must be an array of the same size as map_label.

Revert the change to ftrace.py and fix the test to match what the
documentation says.
2 files changed
tree: b2507c3a2473102234ce75b8494717aca621917d
  1. doc/
  2. hooks/
  3. scripts/
  4. tests/
  5. trappy/
  6. .dir-locals.el
  7. .gitignore
  8. LICENSE
  9. README.md
  10. setup.cfg
  11. setup.py
README.md

trappy is a visualization tool to help analyze data generated on a device. It depends on ipython notebook and pandas. First install these dependencies if you don't have them already:

$ apt-get install ipython-notebook python-pandas

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.