Age | Commit message (Collapse) | Author |
|
|
|
|
|
Signed-off-by: Michele Di Giorgio <michele.digiorgio@arm.com>
|
|
There are codepaths that are only exercised when we plot only one column
but all the plots in InteractivePlotter have two columns/signals.
Change one to increase the testing done by the notebook.
|
|
ILinePlot: only pass the necessary data when xlim is passed
|
|
The InteractivePlotter accepts xlim as a parameter. Add an example to
show it and to test that it works.
|
|
|
|
The signal spec now accepts an optional third parameter which is the
color. Document it so that people know about it.
|
|
There is no pythonic way of specifying the version of a project, [0]
describes 7 (seven!) ways of doing it. We were currently using method
5, setting the value in setup.py and using pkg_resources to get it from
the installed version. This works ok if you have installed the package
using "python setup.py" or pip, but fails if you are importing trappy
from a checkout, which is what lisa do. Even worse, if you import it
from lisa but have an old trappy version installed, trappy.__version__
will tell you the version of the installed trappy, not the one you have
imported and are using.
Switch to use a version.py file that's distributed with the
project (method 3). trappy.__version__ now reads the imported trappy's
version, which is what you want. setup.py and the documentation read
the file when they are installing so as to avoid repeating the version
number there.
[0] https://packaging.python.org/en/latest/single_source_version/
|
|
StaticPlot: pass xlim and ylim through to matplotlib
|
|
In Static plots, xlim and ylim were ignored causing the user to not see the
effect of setting limits to X and Y axes.
Also, an example of usage of those parameters is added to the Plotter notebook
as a reference on how to use them.
Signed-off-by: Michele Di Giorgio <michele.digiorgio@arm.com>
|
|
|
|
Document how to use trappy.nbexport to generate HTML versions of
notebooks.
|
|
Yet another commit sponsored by my OCD.
|
|
The InteractivePlotter documentation has a couple of "Heading 3"s
without any "heading 2"s. One of them is just a note to the user to rerun
the cells. The other can be promoted to "heading 2".
|
|
As far as I can see, this was introduced in 584f88debf51 ("doc: Add
Documentation for Interactive Plotting") but never used.
|
|
|
|
|
|
|
|
Signed-off-by: Michele Di Giorgio <michele.digiorgio@arm.com>
|
|
|
|
The permute documentation is just more documentation about plotter, so
add a new heading to it.
|
|
|
|
It's a bad habit, it imports a lot of things into the global namespace.
Use "%matplotlib inline" instead.
|
|
|
|
|
|
The make_title function now prints the trace name only when needed, that
is when a single trace is being plot. In fact, in this case there will
be no legend and it is good to let the reader know which trace is shown
by putting its name in the title. On the contrary, where there are more
traces, the legend is generated and therefore putting names in the title
becomes redundant.
|
|
|
|
|
|
Change-Id: I4b2c29789dcba57611c38ed4d127733ec8c0bdb9
|
|
This will serve both for everybody to remember that this is there and as
a soft test that it actually works.
|
|
Minor fix to setup.py
|
|
trappy.stats.SchedConf disappeared in 861e6526a9b2 ("stats: Remove
Scheduler specific functions"), which is a change in the API. Bump the
major number.
|
|
|
|
Now that we can have traces coming from sources other than ftrace,
rename register_dynamic() and register_class() to
register_dynamic_ftrace() and register_ftrace_parser() to make it clear
that they are only available for traces coming from ftrace.
|
|
|
|
Run is a very generic and inappropriate name for an object that parses
the result of ftrace into a form consumable by python. Rename it to
FTrace in preparation for its generalization.
|
|
Signed-off-by: Kapileshwar Singh <kapileshwar.singh@arm.com>
|
|
Signed-off-by: Kapileshwar Singh <kapileshwar.singh@arm.com>
|
|
This is to avoid the error:
<parent_URL> was loaded over HTTPS, but requested an insecure script:
'http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'
This request has been blocked; the content must be served over HTTPS.
Signed-off-by: Kapileshwar Singh <kapileshwar.singh@arm.com>
|
|
The API for the grammar parser changed in 5dae68e080f7 ("stats: grammar:
Remove Topology argument") so increase the major number.
|
|
Signed-off-by: Kapileshwar Singh <kapileshwar.singh@arm.com>
|
|
|
|
Update documentation for usage of lanes for EventPlot
Signed-off-by: Kapileshwar Singh <kapileshwar.singh@arm.com>
|
|
Signed-off-by: Kapileshwar Singh <kapileshwar.singh@arm.com>
|
|
Signed-off-by: Kapileshwar Singh <kapileshwar.singh@arm.com>
|
|
Change-Id: I7e0e34c9f5565e34629683bb29ab25cf5e737088
|
|
The tests/ folder is not available for external people. By having an
example trace in the doc/ folder, people that download cr2 from dropzone
can play and modify the examples.
Change-Id: I866c1d254b8cb72664bad14611c1159f975bf46a
|
|
Change-Id: I97398f36bb753a9cd2cfe26bda71bc46858428eb
|
|
id is a python built-in. Don't use it as a name of a parameter.
Change-Id: I0ee59d55eae0d4a336ffc73693ce021ea28ba1e9
|