History log of /external/trappy/tests/trappy/plotter/Constraint.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
e81fdcb135d0325e3bc22fae0583555d20aae280 04-Jan-2017 Brendan Jackman <brendan.jackman@arm.com> Update ARM Ltd. copyright to 2017
/external/trappy/trappy/plotter/Constraint.py
085a0264afaea1a03695d3950c5772bca7ba846e 02-Nov-2016 Brendan Jackman <brendan.jackman@arm.com> Constraint: Fix __str__ for non-string column keys

Pandas DataFrame columns may be named with any hashable object.
/external/trappy/trappy/plotter/Constraint.py
e6274bd2296229dae5303df8b4226601cc4abdb6 04-Jul-2016 Javi Merino <javi.merino@arm.com> 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.
/external/trappy/trappy/plotter/Constraint.py
60ed52753e35678e4e1d52b974d7ba5b0f0abec1 30-Jun-2016 Javi Merino <javi.merino@arm.com> plotter: Constraint: document the templates parameter
/external/trappy/trappy/plotter/Constraint.py
5122084171b205379ed288e9dd45b0ad116d2ead 23-Feb-2016 Javi Merino <javi.merino@arm.com> plotter: Remove handling duplicate indexes from Constraint

After 9fe317fdb547 ("plotter: fix constraint filtering with multiple
filters and pivots") it is not necessary to handle duplicate indexes in
Constraint any more as we don't need to reindex dataframes. Kill this
code from Constarint.

Note that this does not kill handle_duplicate_index from trappy, there
are still valid uses in ILinePlot and the grammar.
/external/trappy/trappy/plotter/Constraint.py
4f4b18adce159f73b112ab789d695918ba45ef2f 29-Mar-2016 Javi Merino <javi.merino@arm.com> plotter: fix references to FTrace

With the introduction of BareTrace and SysTrace, there are a number of
references in the documentation to FTrace that should be more generic,
as classes operate on any of the three *Trace classes. Update some of
the documentation to reflect this.
/external/trappy/trappy/plotter/Constraint.py
50bea38f8318085f90ebe518293b3b12fc598df3 29-Feb-2016 Javi Merino <javi.merino@arm.com> plotter: fix indentation

pylint reports that a line wasn't properly indented. Fix it.
/external/trappy/trappy/plotter/Constraint.py
09e79e3ab1e7cd873b94cee369c58e881a2ef954 23-Feb-2016 Javi Merino <javi.merino@arm.com> plotter: Properly catch multiple exceptions in Constraint.py

except FooError, BarError:

Doesn't catch both FooError and BarError. That code catches FooError
and assigns the catched exception to a variable called BarError. This
is fixed in Python 3 because of that. The correct syntax to catch
multiple exceptions is to pass the as the first argument to the except
keyword as a tuple.
/external/trappy/trappy/plotter/Constraint.py
2711727e6faf92812089e298135f2c8d868973f6 23-Feb-2016 Javi Merino <javi.merino@arm.com> plotter: remove code duplication in Constraint.py

The code for parsing the filter is duplicated in Constant._apply().
Unify it to simplify the function and avoid having to fix bugs in two
places.
/external/trappy/trappy/plotter/Constraint.py
9fe317fdb547baa23dfd378d5c6cf9983eb896a0 23-Feb-2016 Javi Merino <javi.merino@arm.com> plotter: fix constraint filtering with multiple filters and pivots

Constraint._apply() generates a boolean array to filter the data frame
based on the filters. If a ValueError is raised we try to remove the
duplicated indexes before retrying to apply the filter.

When we have multiple filters, by constantly applying the criterion on
"values" we keep reducing it, but by keeping the criterion the same size
as the original dataframe ("data") we force reindexes that make pandas
raise a ValueError. For example:

criterion = values.map(lambda x: True)
for key in self._filters.keys():
if key in data.columns:
criterion = criterion & data[key].map(
lambda x: x in self._filters[key])
--> values = values[criterion]
result[AttrConf.PIVOT_VAL] = values
return result

We try to fix this in handle_duplicate_index() but there is no need to
do that. We just have to stop applying the full criterion on reduced
dataframes. The most efficient way to do it is to build the criterion
for the full constraint (filters and pivot) and then apply it only once
on the dataframe.
/external/trappy/trappy/plotter/Constraint.py
daf270b6b7176619f542a13a9403d0ed9cf4172d 15-Feb-2016 Michele Di Giorgio <michele.digiorgio@arm.com> plotter: Constraint: make column attribute public
/external/trappy/trappy/plotter/Constraint.py
4ec4aee55dbd4045cfb6a2fe099615a569ce7ff7 05-Jan-2016 Javi Merino <javi.merino@arm.com> trappy: update copyright to 2016
/external/trappy/trappy/plotter/Constraint.py
c26a323210533d4ed3a8b4e62c33744236e3beda 11-Dec-2015 Javi Merino <javi.merino@arm.com> ftrace: rename Run to 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.
/external/trappy/trappy/plotter/Constraint.py
bc744b115ac87119e7b09b0f31467e7eeef4a26d 10-Dec-2015 Kapileshwar Singh <kapileshwar.singh@arm.com> plotter: Use util function handle_duplicate_index

Signed-off-by: Kapileshwar Singh <kapileshwar.singh@arm.com>
/external/trappy/trappy/plotter/Constraint.py
b95a4c5504771224bfe6a4abec759c00d2612a73 26-Nov-2015 Javi Merino <javi.merino@arm.com> utils: move listify to a generic trappy.utils file

listify() is used in both plotter and stats. Move it out of
trappy.plotter.Utils into a generic trappy.utils file as it's not
something specific of the plotter.
/external/trappy/trappy/plotter/Constraint.py
3d441c23de2f6c909f3381cf1fd541ffda86bc5b 07-Sep-2015 Kapileshwar Singh <kapileshwar.singh@arm.com> doc: Constraint: Use sphinx friendly docstrings

Signed-off-by: Kapileshwar Singh <kapileshwar.singh@arm.com>
/external/trappy/trappy/plotter/Constraint.py
435457c8af9d69383ba45e0bd7da022d967a8dea 10-Aug-2015 Javi Merino <javi.merino@arm.com> trappy: rename to trappy

Change-Id: I7e0e34c9f5565e34629683bb29ab25cf5e737088
/external/trappy/trappy/plotter/Constraint.py