[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[linuxtools-dev] TMF Hack-a-thon: discussion on xy charts
|
Thanks to all who participated in the hack-a-thon. It was very
motivating to be able to work and discuss face to face, we'll do that
again!
Here's a summary of a discussion I participated in on the xy charts.
Purpose:
We want to be able to easily generate xy charts (bar charts, line
charts, etc), ie provide the maximum facilities so that the developer
only needs to provide the data and the chart will be generated with good
defaults. The generated charts by default will synchronize with the
trace time range, they can be zoomed in/out and have the same general
behavior as the other views of TMF.
Solution:
An abstract base class will add generic xy charts support with all the
necessary implementation to synchronize with the traces and match the
charts' behavior with that of the other views. For some chart type (bar
charts, line charts for a start), we'll provide another abstract class,
inheriting from the first, giving suitable defaults for a given chart
type. Some example charts will be implemented to show how to generate
one. Only a few methods will need to be overriden to provide the data to
plot and the chart series. Eventually, when data-driven analysis are
available, we will add the possibility to generate charts from Xml.
Proposed plan:
Patchsets 1-2:
The TMF team at Ericsson already started working on this subject, two
patchsets are available on gerrit: one for the base xy chart classes
(https://git.eclipse.org/r/#/c/15488/), another for a Lttng Ust memory
usage chart (still a draft). I'll work on those 2 patchsets to move as
much code as possible to the abstract classes and leave only the minimum
in the concrete view.
Patchset 3 (depends 1):
Add easy support of multiple series in the base classes, with different
colors, line style, etc.
Patchset 4 (depends 1):
Make sure the behavior matches that of other views: zoom, scroll, pan, etc.
Patchset 5 (depends 1, data-driven analysis):
Add in the xml analysis plugin the possibility to define data-driven xy
charts.
We'd like to have this feature soon at Polytechnique, so I hope to push
a new version of patchsets 1 and 2 before Christmas and work on 3 and 5
early next year.
Any thoughts?
Thanks,
Geneviève