deliverable/tracecompass.git
7 years agotiming: Listener on table viewer should not be mandatory
Geneviève Bastien [Thu, 20 Apr 2017 17:06:30 +0000 (13:06 -0400)] 
timing: Listener on table viewer should not be mandatory

Race conditions can happen in views where there is a segment store table
and another viewer (like density view) where the data is updated twice
in the table, one by the table viewer itself and one by the density
viewer.

Now the density views can specify not to add a listener for the table
and let the density viewer update the data.

Change-Id: I1d12560bf6dd5f43a667be5836176b4af6f897bc
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/95406
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Hudson CI
7 years agotmf.ui: make TimeEvents in ControlFlowView have thickness
Matthew Khouzam [Tue, 15 Nov 2016 20:49:51 +0000 (15:49 -0500)] 
tmf.ui: make TimeEvents in ControlFlowView have thickness

This makes active threads much easier to spot.
Adds notion of thickness to the "StateItem". In order to
use it, override StateItem#getHeightFactor().

The patch also introduces the notion of a style map.
This is loosely based on CSS fill styles. The styles
in the map are suggestions and do not need to be implemented
by the UI, but could at a later date.

The styleMap is passes as follows where each step can override the
base map:

* LinuxStyle (Style on an analysis level)
* StateItem (Style on a per-view level)
* PresentationProvider (Style on a per-event level)

Change-Id: I0a5f33d958a1ec1746ace9a66fecd728fb5a68ed
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/85092
Reviewed-by: Hudson CI
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
7 years agoss: add 2D iterator queries to the SS API
Loïc Prieur-Drevon [Thu, 6 Apr 2017 14:43:27 +0000 (10:43 -0400)] 
ss: add 2D iterator queries to the SS API

This patch adds 2D iterator queries to the ITmfStateSystem API,
which lazily returns intervals from a list of their quarks,
that intersect (a time range or a list of timestamps).

Change-Id: I52d510a1c6e5d24faa2d5d5466112c70d795b39a
Signed-off-by: Loïc Prieur-Drevon <loic.prieurdrevon@gmail.com>
Signed-off-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Reviewed-on: https://git.eclipse.org/r/85962
Reviewed-by: Hudson CI
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
7 years agolttng.xml: Add xml analysis for irq
Jean-Christian Kouame [Thu, 27 Apr 2017 20:54:12 +0000 (16:54 -0400)] 
lttng.xml: Add xml analysis for irq

Change-Id: I5acb67e49db90dc96280705e483aed55bd5d25f9
Signed-off-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/95960
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agoreleng: update to Guava v21.0.0 for staging target
Bernd Hufmann [Thu, 13 Apr 2017 14:04:34 +0000 (10:04 -0400)] 
releng: update to Guava v21.0.0 for staging target

Change-Id: I512a68c3d75ac1c17a1f5dd7919330cd9ae16319
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/94244
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Hudson CI
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agoreleng: deploy missing orbit dependencies on TC update sites
Bernd Hufmann [Wed, 3 May 2017 13:11:40 +0000 (09:11 -0400)] 
releng: deploy missing orbit dependencies on TC update sites

Change-Id: Ic8e303bc6cc9d4f8f5e2bb9ddc9bdee318332708
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/96296
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Hudson CI
7 years agoctf: add os-events trace directory to .gitignore
Bernd Hufmann [Wed, 3 May 2017 10:41:23 +0000 (06:41 -0400)] 
ctf: add os-events trace directory to .gitignore

Change-Id: Ic295d455339d3ecbebbed847a838b5ca1925489c
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/96278
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agocommon: package external annotations during build
Bernd Hufmann [Tue, 4 Apr 2017 15:35:24 +0000 (11:35 -0400)] 
common: package external annotations during build

Change-Id: I1318ea3246cc751193e260027058f77f9e47868f
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/94389
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agoalltests: remove dependencies to org.apache.commons.lang
Bernd Hufmann [Wed, 3 May 2017 13:09:58 +0000 (09:09 -0400)] 
alltests: remove dependencies to org.apache.commons.lang

and use org.apache.commons.lang3 instead

Change-Id: I2ae7242dfa0586d20acde0d55af73f41c61081f0
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/96295
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agoctf.core: Support traces with empty packets before the end
Matthew Khouzam [Wed, 22 Mar 2017 18:06:13 +0000 (14:06 -0400)] 
ctf.core: Support traces with empty packets before the end

This patch allows tracecompass to support CTF traces containing empty
packets.

Change-Id: I8876e26e7224c147620b548220de2f7020b5dd33
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/93647
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-by: Hudson CI
7 years agoctf: make search return the first matching packet in a trace
Matthew Khouzam [Fri, 28 Apr 2017 17:16:07 +0000 (13:16 -0400)] 
ctf: make search return the first matching packet in a trace

The CTF parser would return a random packet in search when all packets
overlap. This patch makes it return the first. Performance impacts on
properly packetized traces should be negligeable.

Change-Id: I4e9470c46b3801779ba874c4d2ccfcae88a65e16
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/96055
Reviewed-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
7 years agolttng: fix memory usage view when ust trace is in an experiment
Bernd Hufmann [Mon, 17 Apr 2017 14:54:23 +0000 (10:54 -0400)] 
lttng: fix memory usage view when ust trace is in an experiment

This fix avoids a TimeRangeException exception if experiment starts
before state system start time. Also, it clears the view if current
window range is outside the state system range of the memory usage.

Change-Id: I1d2afdffacfbf80db1fa90b3b2bb0c7c62d6faab
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/95125
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
7 years agoanalysis: make call graph analysis non-automatic
Bernd Hufmann [Tue, 2 May 2017 15:43:07 +0000 (11:43 -0400)] 
analysis: make call graph analysis non-automatic

Change-Id: I01c191184e751a1b7882287608425ec45269423a
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/96183
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agoreleng: use mylyn 3.21 to build help plug-ins
Bernd Hufmann [Mon, 1 May 2017 17:54:29 +0000 (13:54 -0400)] 
releng: use mylyn 3.21 to build help plug-ins

The current build process is aligned with the APIs of this
version. Trace Compass only depends on mylyn for the
generation of the help plug-ins and not at runtime.

Change-Id: If0e796f7b96710207c5cfa395e6dba49f99421e3
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/96114
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Hudson CI
7 years agoswtbot: Make SWTBotTimeGraph/Entry.getEntry() wait for entry
Patrick Tasse [Tue, 2 May 2017 17:39:11 +0000 (13:39 -0400)] 
swtbot: Make SWTBotTimeGraph/Entry.getEntry() wait for entry

These methods currently try only once to find the entry but output
"Timed out waiting for..." when it fails.

To match the failure message, and for increased test robustness, make
the methods actually use a wait condition.

Change-Id: Ic1c797b4fa59e44179f0af03fdbb7ae6a27b23bf
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/96240
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Hudson CI
7 years agotmf: Support child entries with different state systems in TimeGraphView
Patrick Tasse [Tue, 25 Apr 2017 19:31:02 +0000 (15:31 -0400)] 
tmf: Support child entries with different state systems in TimeGraphView

Decouple the roots of the AbstractTimeGraphView with the entries
associated with a state system in AbstractStateSystemTimeGraphView.

This allows, for example, a 'trace' entry to be root of the graph, that
has independent branches of children whose event lists, links and
markers are populated using their own, separate, state systems.

Change-Id: Ied2a2f91d6661e4cff76f07c06ba9e2eb5c4e25c
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/95730
Reviewed-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Tested-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Reviewed-by: Hudson CI
7 years agotiming.core: use symbol aspect directly on call graph segment's getName()
Matthew Khouzam [Fri, 28 Apr 2017 19:33:46 +0000 (15:33 -0400)] 
timing.core: use symbol aspect directly on call graph segment's getName()

getName() is a presentation level getter, it only makes sense to resolve
the symbol there.

Change-Id: Ifebaad310b79e7974dfbc1ce95298fab34721cf4
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/96062
Reviewed-by: Hudson CI
Reviewed-by: Loic Prieur-Drevon <loic.prieurdrevon@gmail.com>
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
7 years agoXML: Add multi-analyses views
Geneviève Bastien [Wed, 19 Apr 2017 21:13:52 +0000 (17:13 -0400)] 
XML: Add multi-analyses views

This patch adds a new attribute to time graph view entry to be able to
use the state system from another analyses to populate some entries.

It also adds more regex support where path can contain place holders
like $1 to be replaced by any wildcard previously specified.

Change-Id: I13de7d2a4af091f4090ddc5ee61634739571c4d7
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/95379
Reviewed-by: Hudson CI
Reviewed-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Tested-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
7 years agocommon.core: Annotate Objects#requiresNotNull
Matthew Khouzam [Fri, 21 Apr 2017 20:11:19 +0000 (16:11 -0400)] 
common.core: Annotate Objects#requiresNotNull

Change-Id: I2e80880b67042165c6374be3b54df479851c7b2c
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/95503
Reviewed-by: Hudson CI
Reviewed-by: Loic Prieur-Drevon <loic.prieurdrevon@gmail.com>
Tested-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
7 years agoreleng: update mylyn update site since in staging target
Bernd Hufmann [Fri, 28 Apr 2017 19:44:23 +0000 (15:44 -0400)] 
releng: update mylyn update site since in staging target

because the previous one was removed from the remote server.

Change-Id: I7d8b53875fa0db4730c467d6b611e9b820fe6fa0
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/96064
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Hudson CI
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agoctf: Add a benchmark trace enum
Geneviève Bastien [Mon, 27 Feb 2017 15:44:02 +0000 (10:44 -0500)] 
ctf: Add a benchmark trace enum

And add a first trace to be used for benchmarks. These traces are too
big to be added to the test traces repo, so they should be optional
resources to download to run some benchmarks on.

Change-Id: Icba00c9a49fb81d9ed86485dc7e2d9890655c0e4
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/91917
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agoctf.core: use TreeMap for EnumDeclaration
Loïc Prieur-Drevon [Mon, 24 Apr 2017 23:53:36 +0000 (19:53 -0400)] 
ctf.core: use TreeMap for EnumDeclaration

Change-Id: I670bfe871a34774df69e3bff60d0ab144817e617
Signed-off-by: Loïc Prieur-Drevon <loic.prieurdrevon@gmail.com>
Reviewed-on: https://git.eclipse.org/r/95632
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
7 years agoanalysis: package call graph icon
Bernd Hufmann [Wed, 26 Apr 2017 13:26:43 +0000 (09:26 -0400)] 
analysis: package call graph icon

Otherwise the icon is not available in RCP or upon installation
of the plug-in.

Change-Id: I565dfbc91febb4be1f4ab6b343431c6d83ca3aa8
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/95797
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agoreleng: Fix ProjectExplorerTracesFolderTest
Patrick Tasse [Thu, 27 Apr 2017 21:00:19 +0000 (17:00 -0400)] 
releng: Fix ProjectExplorerTracesFolderTest

The generated clashing LTTng traces in TestDirectoryStructureUtil are
changed to have a duration of 1001 ns (not 1000 ns) for 1001 events.

This prevents the time delta between events from flooring down to 0 ns,
which causes all events and all packet begin and end times to be equal.

There is probably another bug in the CTF reader that seeks to the
incorrect packet when there are multiple packets with the same begin and
end times.

Change-Id: Icea44a26f9b4913c2bee7d0bddae575a7263b58f
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/95961
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
7 years agosegStore on disk: Fix boundaries for child lookup
Geneviève Bastien [Tue, 18 Apr 2017 18:28:22 +0000 (14:28 -0400)] 
segStore on disk: Fix boundaries for child lookup

Change-Id: I098c412edc8050dcabf9ec01d2b50208fbb89acb
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/95206
Reviewed-by: Hudson CI
Reviewed-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Tested-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
7 years agoRevert "tmf.ui.swtbot: disable RawTextEditorTest#readTrace"
Patrick Tasse [Thu, 27 Apr 2017 18:18:25 +0000 (14:18 -0400)] 
Revert "tmf.ui.swtbot: disable RawTextEditorTest#readTrace"

This reverts commit 03ec84392e7bf66cadb1c15b52369bba19a43aa4.

Change-Id: I01912a8171b6cf27ddbffdd0146f5a3d2ba90e0a
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/95941
Reviewed-by: Hudson CI
7 years agoIntroduce an API to download and import traces from HTTP/HTTPS
Simon Delisle [Wed, 12 Apr 2017 15:16:05 +0000 (11:16 -0400)] 
Introduce an API to download and import traces from HTTP/HTTPS

This patch contains two parts:
- A class to download a file from HTTP links
- An import operation that use the download helper to import the
dowloaded traces in the workspace

Change-Id: I1b588b113e352630760a9cab0dfbfd0052368b29
Signed-off-by: Simon Delisle <simon.delisle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/94940
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Tested-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
7 years agotmf.ui.swtbot: Fix missing @Override in SWTBotSash.getBounds()
Simon Delisle [Wed, 26 Apr 2017 15:03:57 +0000 (11:03 -0400)] 
tmf.ui.swtbot: Fix missing @Override in SWTBotSash.getBounds()

The parent now implements this method.

Temporarily disable failing checks in ProjectExplorerTracesFolderTest.

Change-Id: I4a60bfa5bafdc07eda2f840fdbda0c0b45a4661d
Signed-off-by: Simon Delisle <simon.delisle@ericsson.com>
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/95815
Reviewed-by: Hudson CI
7 years agotmf.ui: Update JUL log points in time graph view
Geneviève Bastien [Wed, 22 Mar 2017 19:37:26 +0000 (15:37 -0400)] 
tmf.ui: Update JUL log points in time graph view

This will allow to analyze the command flow from the user interaction to
the views being updated with the new TraceCompassLogUtils API.

Change-Id: Ifa500032f060e8325dbcc3a9dd00c48ead706c59
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/93742
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-by: Hudson CI
7 years agotiming: Add a generic statistics table view
Geneviève Bastien [Thu, 22 Sep 2016 20:59:37 +0000 (16:59 -0400)] 
timing: Add a generic statistics table view

Change-Id: Ia199415d1b292fdf2175827ad687f1d41d7b7ff5
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/82285
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agotmf.core/ui: Move some logic of the symbol provider to core
Matthew Khouzam [Mon, 17 Apr 2017 03:22:07 +0000 (23:22 -0400)] 
tmf.core/ui: Move some logic of the symbol provider to core

This moves the Symbol provider to core. Special care must be taken to
ensure that the preference page is available if required.

Moves callstack symbol providers to core interfaces.

Makes flamegraph use symbol aspect.

Most changes are internal, so this does not affect the API much.
Also, now CallgraphAnalysis can be in Core.

Change-Id: Ie4c37b670f599fad8fb74e08b458c0db65bb312c
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/95118
Reviewed-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
7 years agotmf.ui.swtbot: disable RawTextEditorTest#readTrace
Matthew Khouzam [Fri, 21 Apr 2017 18:39:58 +0000 (14:39 -0400)] 
tmf.ui.swtbot: disable RawTextEditorTest#readTrace

Until we can figure out what is breaking the build disable this test.

Change-Id: I9428b2412934146fc1238adda067419aee5af876
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/95494
Reviewed-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
7 years agoFix @NonNull annotation errors
Patrick Tasse [Thu, 20 Apr 2017 19:08:36 +0000 (15:08 -0400)] 
Fix @NonNull annotation errors

Change-Id: Ide9dffbd1a0a416e832853b6d29737590e5c292c
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/95415
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agoxml: Move XmlUtils#getElementInFile to TmfXmlUtils
Geneviève Bastien [Fri, 3 Mar 2017 17:51:48 +0000 (12:51 -0500)] 
xml: Move XmlUtils#getElementInFile to TmfXmlUtils

Change-Id: Icb71bc9f15f7b09ff556d579ca407574e6ff9ac3
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/92279
Reviewed-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Reviewed-by: Hudson CI
Tested-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
7 years agocritical path: Fix condition that caused infinite loop
Geneviève Bastien [Wed, 19 Apr 2017 19:42:18 +0000 (15:42 -0400)] 
critical path: Fix condition that caused infinite loop

Change-Id: Ic52e2c8849fd00e543e47fe1d8ee4a87afd23ef3
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/95316
Reviewed-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Tested-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Reviewed-by: Hudson CI
7 years agoxml: Move xml strings and schemas to public packages
Geneviève Bastien [Fri, 3 Mar 2017 17:00:01 +0000 (12:00 -0500)] 
xml: Move xml strings and schemas to public packages

Since the XML is now extendable, external plugins may need to make use
of those values, so they are now part of the API. As for the schema,
though not mandatory to run correctly, it makes it obvious that they
can be used by external plugins.

Also, a TmfXmlUtils class has been added to the API and the
getChildElements method from XmlUtils has been moved there.

Change-Id: If1a98badcf52cbbafe77699d0cf6c6e9df3b47c8
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/92276
Reviewed-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Tested-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Reviewed-by: Hudson CI
7 years agotmf.core: instrument checkpoint indexer
Matthew Khouzam [Wed, 7 Dec 2016 01:43:28 +0000 (20:43 -0500)] 
tmf.core: instrument checkpoint indexer

This shows how many events were read.

Change-Id: Iaf1e58f0d7a504e69e45d3d5040847670c79859f
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/86559
Reviewed-by: Hudson CI
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
7 years agotmf: Split ISymbolProvider into core and UI parts
Matthew Khouzam [Mon, 17 Apr 2017 02:10:34 +0000 (22:10 -0400)] 
tmf: Split ISymbolProvider into core and UI parts

The ISymbolProvider interface and related classes were all living in the UI
plugin only because of the preference page option, which is a UI-only
construct. This limitation was known since the inception of the symbol
provider, with the intent of eventually correctly splitting it into
core and UI components. This patch partially fullfills that.

Future work:

* Make symbol providers in core.

Change-Id: I64696929fcd8f47ba34b6a7b48d5e814faca7616
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/95115
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Reviewed-by: Hudson CI
7 years agoreleng: Don't use Guava references that will be removed in Guava 21.0
Bernd Hufmann [Thu, 13 Apr 2017 13:55:18 +0000 (09:55 -0400)] 
releng: Don't use Guava references that will be removed in Guava 21.0

By doing that, it will be possible to use the same master build on
Neon and Oxygen.

com.google.common.base.Objects.ToStringHelper will be removed and
is replaced by apache.commons.lang3.builder.ToStringBuilder.

Change-Id: I646f6ae904c0541e2ebc15aa4276f7af9f99fbdd
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/95008
Reviewed-by: Hudson CI
Reviewed-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Tested-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
7 years agocommon.core: Add Counter events
Matthew Khouzam [Thu, 23 Mar 2017 01:55:28 +0000 (21:55 -0400)] 
common.core: Add Counter events

These events can be used to fill line charts.

Change-Id: I223f3329d4f4d3d04fa365146ed5f7267f9a6d80
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/93666
Reviewed-by: Hudson CI
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
7 years agotmf: fix strike-through of analyses that can't be executed
Bernd Hufmann [Thu, 13 Apr 2017 19:48:56 +0000 (15:48 -0400)] 
tmf: fix strike-through of analyses that can't be executed

Change-Id: I83db6e38616c54fa8b8537b055bee8819f39ac3e
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/95032
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agotiming.core/ui: make flamegraphs aggregate threads by default
Matthew Khouzam [Wed, 22 Mar 2017 02:57:59 +0000 (22:57 -0400)] 
timing.core/ui: make flamegraphs aggregate threads by default

If you have a flow of data with several threads using a scatter/
gather pattern, the flamegraph aggregates it to show the global
picture of all the threads.

To switch from the per-thread (default) to aggregate (classic) mode
and back, click on the drop-down menu and go to "Content Presentation".

Change-Id: I1fab0e09278d029302129071af31b1d809810b0a
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Signed-off-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/93589
Reviewed-by: Hudson CI
7 years agosegStore: rename SegmentStore performance tests correctly
Loïc Prieur-Drevon [Tue, 13 Dec 2016 14:51:37 +0000 (09:51 -0500)] 
segStore: rename SegmentStore performance tests correctly

The package had not been renamed correctly after moving from
analysis.timing to segmentstore plug-in.

Change-Id: I82b8d6c1bf835cbc96c333f9c3330b19ece29a0c
Signed-off-by: Loïc Prieur-Drevon <loic.prieurdrevon@gmail.com>
Reviewed-on: https://git.eclipse.org/r/87051
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agotmf: Extract getDistinctColor() method to Utils
Patrick Tasse [Thu, 13 Apr 2017 13:38:47 +0000 (09:38 -0400)] 
tmf: Extract getDistinctColor() method to Utils

It can be now used by other classes.

Change-Id: I9e868799a4da131cd9b94bd89b480ffba37e85a4
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/95006
Reviewed-by: Hudson CI
Reviewed-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Tested-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
7 years agotmf.ui: Log analysis schedule/execute lifecycle.
Matthew Khouzam [Mon, 5 Dec 2016 17:37:41 +0000 (12:37 -0500)] 
tmf.ui: Log analysis schedule/execute lifecycle.

This shows the use of flow scope event.

Change-Id: I7b6ea3c0be77c9b7f3b5b0abbcc043f44a4fec70
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/86391
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Reviewed-by: Hudson CI
7 years agotmf.core: Add logging to Request executor.
Matthew Khouzam [Tue, 29 Nov 2016 21:55:18 +0000 (16:55 -0500)] 
tmf.core: Add logging to Request executor.

Change-Id: If204199f0bb5190b3bd9cea1d5f885d56686c7ce
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/86081
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Reviewed-by: Hudson CI
7 years agocharts: Add swtbot plugin and utility class
Geneviève Bastien [Mon, 27 Feb 2017 17:03:48 +0000 (12:03 -0500)] 
charts: Add swtbot plugin and utility class

Creates the o.e.t.charts.ui.swtbot.tests plugin and add chart utils
class to be used by other swtbot tests who will create custom charts

Change-Id: I942786338c5178f5ca67f4c63299fb056cb5ff1a
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/91932
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agotmf: Support nested experiments in core
Patrick Tasse [Mon, 10 Apr 2017 18:14:41 +0000 (14:14 -0400)] 
tmf: Support nested experiments in core

This patch adds support for experiments within experiments in the core
plug-in. It is not yet possible to create nested experiments with the
Project Explorer UI, but this patch adds support for nested experiments
that can be created by plug-in extensions programmatically.

The method TmfTraceManager.getTraceSet() is now recursive and returns
only the leaf traces of a given experiment.

The method TmfTraceManager.getTraceSetWithExperiment() is now recursive
and returns all child experiments and traces of a given experiment,
including itself.

The method TmfTrace.traceOpened() now executes (e.g. analyses) when the
trace being opened is any parent of the trace instance.

Change-Id: I2afd97cd482e6724dfaf2d0eb687cbe81de2790c
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/94773
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agosegStore: getIntersectingElements performance tweaks.
Loïc Prieur-Drevon [Sun, 4 Dec 2016 17:46:06 +0000 (12:46 -0500)] 
segStore: getIntersectingElements performance tweaks.

Use binarySearch from (Lazy)ArrayList to correctly dimension
the returned ArrayList, resizing such large arrays happens
frequently during insertion and is costly.

Also stop copying elements into a new arraylist prior
to sorting if the returned Iterable is already a new
instance of arraylist.

Optimize TreeMapStore by reducing it to a single instance
of TreeMultiMap and using its ordered properties
efficiently to return intersecting Segments.

Benchmark results below, best if viewed in a spreadsheet:
SegmentStore Test Before (ms) After (ms) Gains (%)
LazyArrayList Fuzzy Iterate sorted by start 220 171 22.2727272727273
LazyArrayList Fuzzy Iterate sorted by end 45 27 40
LazyArrayList Fuzzy Iterate sorted by length 40 23 42.5
LazyArrayList Random Iterate sorted by start 382 289 24.3455497382199
LazyArrayList Random Iterate sorted by end 127 73 42.5196850393701
LazyArrayList Random Iterate sorted by length 119 71 40.3361344537815
Treemap store Ordered Insertion 1640 669 59.2073170731707
Treemap store Fuzzy Insertion 902 403 55.3215077605322
Treemap store Fuzzy Iterate sorted by start 1610 187 88.3850931677019
Treemap store Fuzzy Iterate sorted by end 1570 164 89.5541401273885
Treemap store Fuzzy Iterate sorted by length 1030 125 87.8640776699029
Treemap store Random Insertion 3960 898 77.3232323232323
Treemap store Random Iterate sorted by start 2890 299 89.6539792387543
Treemap store Random Iterate sorted by end 2460 299 87.8455284552846
Treemap store Random Iterate sorted by length 1550 275 82.258064516129
Treemap store Fuzzy First Insertion 923 196 78.7648970747562
Treemap store Fuzzy First Iteration 66 20 69.6969696969697
Treemap store Fuzzy Second Insertion 929 210 77.3950484391819
Treemap store Fuzzy Second Iteration 95 34 64.2105263157895
Treemap store Random First Insertion 3670 384 89.5367847411444
Treemap store Random First Iteration 265 25 90.5660377358491
Treemap store Random Second Insertion 4590 521 88.6492374727669
Treemap store Random Second Iteration 423 56 86.7612293144208

Change-Id: I3ae2191b74f4f2170f44f45a139b866753b2441a
Signed-off-by: Loïc Prieur-Drevon <loic.prieurdrevon@gmail.com>
Reviewed-on: https://git.eclipse.org/r/86334
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Tested-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
7 years agoswtbot: Add new utility methods
Patrick Tasse [Wed, 5 Apr 2017 20:17:42 +0000 (16:17 -0400)] 
swtbot: Add new utility methods

Add these SWTBotUtils methods:

- SWTBotUtils.getBoundsToDisplay()

- SWTBotUtils.pressShortcut()

- SWTBotUtils.applyTimeGraphFilter()

- ImageHelper.waitForNewImage()

Change-Id: Ie30ac505726bc6e75223e19426960fb53c007fee
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/94495
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Hudson CI
7 years agoxml: Add support for processing extended schemas
Geneviève Bastien [Wed, 1 Mar 2017 17:03:42 +0000 (12:03 -0500)] 
xml: Add support for processing extended schemas

This adds an element to the XSD extension point to specify a class to parse
the extended schema elements. When creating helpers, those classes will
be called to provide the right analysis module helper that will create
the analysis module when necessary.

Change-Id: Ib31650c8d10f22842236935a52a7ace3c184b485
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/92114
Reviewed-by: Hudson CI
Reviewed-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Tested-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
7 years agoxml: Make the schema extendable
Geneviève Bastien [Tue, 28 Feb 2017 16:20:21 +0000 (11:20 -0500)] 
xml: Make the schema extendable

This patch adds an element to the tmfxml sequence that can be used to
add new element types to the XML.

It also adds an extension point for plugins to add additional XSD files
that can be used to validate XML with the new types.

The approach is validated by unit tests

Change-Id: I2c71d1b49affa1fa7df41cc9bd67db24af40e9a7
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/92113
Reviewed-by: Hudson CI
Reviewed-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Tested-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
7 years agotmf: Fix experiment trace time range in Project Explorer
Patrick Tasse [Thu, 6 Apr 2017 19:25:26 +0000 (15:25 -0400)] 
tmf: Fix experiment trace time range in Project Explorer

When the supplementary files are deleted, the start and end times stored
in the corresponding TmfTraceElement are reset. However this does not
affect the trace element instances of the same trace that can be present
under an experiment element. These instances keep their own start and
end times that could be obsolete.

The navigator label provider should simply always use the corresponding
trace element under the traces folder for trace elements under
experiments.

Change-Id: Ia7f13aab77d7b565a374a339a6c2e9b2c6347978
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/94604
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agoreleng: Add hamcrest to the target file
Simon Delisle [Tue, 4 Apr 2017 18:21:50 +0000 (14:21 -0400)] 
releng: Add hamcrest to the target file

Add Hamcrest to the target file in order to get rid of the dependency
issue with mockito/eclipse.test

Change-Id: Icad392bf5b374c09fde1c62dce4ff2414ef1d7ad
Signed-off-by: Simon Delisle <simon.delisle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/94408
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Reviewed-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Tested-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
7 years agoctf: Fix NullPointerException in CtfTmfTrace.getCallsite()
Patrick Tasse [Thu, 6 Apr 2017 16:45:22 +0000 (12:45 -0400)] 
ctf: Fix NullPointerException in CtfTmfTrace.getCallsite()

The event declaration list can contain null elements.

Also, a callsite at exactly the same ip as the requested ip should be
considered valid.

Change-Id: I645e57cda89e9b6b8677f53094e389b5a0c0664c
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/94598
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agosegStore: Add unit test for history tree segment store
Geneviève Bastien [Mon, 3 Apr 2017 20:13:31 +0000 (16:13 -0400)] 
segStore: Add unit test for history tree segment store

Change-Id: I6ebd58ea6f117511525a49d55faa46370dace365
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/86112
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agosegStore: Add a history tree segment store
Loic Prieur-Drevon [Thu, 1 Dec 2016 01:38:19 +0000 (20:38 -0500)] 
segStore: Add a history tree segment store

Change-Id: I9bf5cfffa7aa15aa6048b30f2e17446406aba891
Signed-off-by: Loïc Prieur-Drevon <loic.prieurdrevon@gmail.com>
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/75358
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agodatastore: Add a Predicate for children node header
Geneviève Bastien [Thu, 19 Jan 2017 15:18:02 +0000 (10:18 -0500)] 
datastore: Add a Predicate for children node header

This adds the possibility to filter children nodes by their header data
from a Predicate on the intervals. There is a new method in the tree and
node to transform a Predicate on the interval to a Predicate on the core
node data. Each tree and node implementations are responsible for their
own data.

Change-Id: Ibe44b089a8d25e3f4b53718570372c96e150c1ed
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/89120
Reviewed-by: Loic Prieur-Drevon <loic.prieurdrevon@gmail.com>
Reviewed-by: Hudson CI
7 years agolami.test: Add stub analyzes and share the package
Geneviève Bastien [Mon, 27 Feb 2017 16:59:15 +0000 (11:59 -0500)] 
lami.test: Add stub analyzes and share the package

This will allow other lami packages to use the same stub analyzes.

Also remove a few null warnings by adding assertNotNull before using the
value.

Change-Id: I5e149060a5ad45181fca32e17376eb4e7a74782e
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/91931
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agocharts: Make IDataChartProvider public
Geneviève Bastien [Fri, 3 Mar 2017 20:26:30 +0000 (15:26 -0500)] 
charts: Make IDataChartProvider public

It is quite straightforward and keeping it internal.provisional is more
trouble than it's worth since only internal classes in other plugins may
use it without API problems.

Change-Id: Id91d62c9709a9bba9a9b5aad8f0ac18891a89666
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/92520
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agotmf.core: Build a TmfAnalysisException from any type of Throwable.
Loïc Prieur-Drevon [Fri, 31 Mar 2017 19:07:26 +0000 (15:07 -0400)] 
tmf.core: Build a TmfAnalysisException from any type of Throwable.

Change-Id: I6b92592ff5092b2941259dcf8958a20a79fd974c
Signed-off-by: Loïc Prieur-Drevon <loic.prieurdrevon@gmail.com>
Reviewed-on: https://git.eclipse.org/r/94242
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
7 years agotmf: Fix BufferedRandomAccessFile
Patrick Tasse [Fri, 24 Mar 2017 22:08:21 +0000 (18:08 -0400)] 
tmf: Fix BufferedRandomAccessFile

The method read(byte[]) was not overloaded and therefore reading
natively at the real file pointer, which could be different than the
buffered file pointer set at the last seek or read. The method now reads
from the buffer.

The write methods were not overloaded, and had the same issues. The real
file pointer is now synched with the buffered file pointer before the
write, and the buffered file pointer is synched with the real file
pointer after the write.

When repeatedly seeking backwards and reading, the buffer was
invalidated and filled at every iteration. The file will now position
itself to read ahead by half of the buffer size when seeking backwards.
This will improve the chance to benefit from the read buffer.

Unit tests are added.

Change-Id: If9662844818f1500f8d403b1120083892e788188
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/93840
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agosettings: Remove unused problem filters
Jean-Christian Kouame [Mon, 3 Apr 2017 14:24:29 +0000 (10:24 -0400)] 
settings: Remove unused problem filters

Change-Id: I6f5e0c80472eef411f445c7de687ede00b66bd0e
Signed-off-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/94303
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
7 years agoreleng: Update tracecompass features version to 3.0.0
Jean-Christian Kouame [Mon, 3 Apr 2017 19:30:25 +0000 (15:30 -0400)] 
releng: Update tracecompass features version to 3.0.0

Change-Id: Ib5a8735f2b280ef164654ecd8166b52f8e9328a9
Signed-off-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/94176
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
7 years agolinux.ui: add a centralized registry of event styles.
Matthew Khouzam [Tue, 15 Nov 2016 19:53:31 +0000 (14:53 -0500)] 
linux.ui: add a centralized registry of event styles.

This ensures that a state in the Control Flow view and the Resources
view will always be the same color. Also allows localizable help text.

Change-Id: I17cf2ad0e3bda0e254a1ee6d12df0aa96177647a
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/85091
Reviewed-by: Hudson CI
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
7 years agotmf: Fix abstract time graph view end bound
Patrick Tasse [Wed, 22 Mar 2017 18:24:24 +0000 (14:24 -0400)] 
tmf: Fix abstract time graph view end bound

Some abstract time graph view implementations set the end time bound of
the view to the state system end time + 1. This was to be able to see
the last state in the case that the last event in the trace resulted in
a state change (the time graph event begins at end time and has a
duration of 1).

However the TmfTraceManager does not allow the window range to exceed
the trace bounds. So when the view window range was changed to show the
view end bound, it immediately snapped back to the trace end time. This
can be seen by double-clicking on the time graph scale to show the full
range, or by zooming in and scrolling all the way to the end.

This effect also prevents the view from zooming out of a 1 ns window
range at the trace end time.

The end time bound can be set to the state system end time directly. The
final state can still be seen, selected and hovered for its tool tip,
although it has a 1 pixel width.

Change-Id: I6e65fc2f960c54af0c53e4725dba334ba30fe827
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/93649
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agotmf: Fix time graph scale ticks and grid lines
Patrick Tasse [Wed, 22 Mar 2017 14:20:01 +0000 (10:20 -0400)] 
tmf: Fix time graph scale ticks and grid lines

The time graph control depends on the time graph scale to get the tick
list of x-coordinates to use them to draw vertical grid lines. The tick
list is computed when the time graph scale is painted.

It appears that the order in which these two controls are painted is not
guaranteed. Therefore time graph control can sometimes paint grid lines
using the previous time range's tick list. With AbstractTimeGraphView
this usually gets fixed after a short delay when the zoom thread
triggers another repaint at the same window range, but not always.

This tick list in the time graph scale is no longer cached, and is
always recalculated from the current window range when requested by the
time graph control.

Another issue is that the last grid line disappears when its
corresponding tick label does not have room to draw completely. It is
now always drawn, and the tick label is simply truncated.

The calculation of the number of tick label digits for the CALENDAR time
format is fixed. It was too large and inconsistent, which could cause
grid lines to be unnecessarily far apart.

The digit width is cached so that it can be used outside of the time
graph scale's paint event.

Change-Id: Iaaa1caae8328d469700a7ad8aee726795b356930
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/93620
Reviewed-by: Hudson CI
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agoFix some tests with Eclipse 4.7
Marc-Andre Laperle [Sat, 1 Apr 2017 20:45:06 +0000 (16:45 -0400)] 
Fix some tests with Eclipse 4.7

In Preferences, the OK label changed to "Apply and Close"

Change-Id: Icfddee53a45a895a6df82edd650a5d31c2124e5f
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/94261
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
7 years agoreleng: Update target file for Neon.3
Jean-Christian Kouame [Thu, 30 Mar 2017 20:52:26 +0000 (16:52 -0400)] 
releng: Update target file for Neon.3

Change-Id: Ie34424bafeac522d71619cbd2d46100bcedfc121
Signed-off-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/94175
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
7 years agoreleng: Fix invalid since tag in several files
Jean-Christian Kouame [Thu, 30 Mar 2017 19:52:31 +0000 (15:52 -0400)] 
releng: Fix invalid since tag in several files

Change-Id: I2c61ca0faa7676861f9b1bb6419ec1a418a3ed7d
Signed-off-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/94171
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
7 years agoreleng: Add baseline target definition for release 2.3.0
Bernd Hufmann [Fri, 24 Mar 2017 10:49:02 +0000 (06:49 -0400)] 
releng: Add baseline target definition for release 2.3.0

Also update the oomph setup for that.

Change-Id: I3251ec01d3daf1b3e19e899fa0134c8ca11f207e
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/93796
Reviewed-by: Hudson CI
Reviewed-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Tested-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
7 years agolttng: Remove procname from callstack requirements
Geneviève Bastien [Tue, 20 Dec 2016 02:17:12 +0000 (21:17 -0500)] 
lttng: Remove procname from callstack requirements

The analysis does not need the procname and it adds some overhead in a trace
with a lot of function calls. Though procname makes it prettier, it should not
prevent a user from seeing the callstack of a perfectly workable trace.

Change-Id: I3603b52f8559c40b86193d954ab94d9e65dc9bce
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/87449
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agotmf.ui: handle enabled/disabled trace types in the Filters View
Jean-Christian Kouame [Tue, 28 Mar 2017 13:43:41 +0000 (09:43 -0400)] 
tmf.ui: handle enabled/disabled trace types in the Filters View

Change-Id: Ia3b1849ba5e45b1ef6fcf2b7225b604dea2c1b44
Signed-off-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/93989
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-by: Hudson CI
7 years agodoc: Add documentation for trace type preference page
Jean-Christian Kouame [Thu, 16 Mar 2017 19:41:09 +0000 (15:41 -0400)] 
doc: Add documentation for trace type preference page

Change-Id: Iedd2a354117b64e4843f5f774ddc44d46069f24d
Signed-off-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/93244
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-by: Hudson CI
7 years agotmf.ui: Add SWTBot test for trace type preferences page
Jean-Christian Kouame [Thu, 16 Mar 2017 18:18:23 +0000 (14:18 -0400)] 
tmf.ui: Add SWTBot test for trace type preferences page

Change-Id: I66c293de7c9c02fa90b637048c5e452048f43fc4
Signed-off-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/93237
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-by: Hudson CI
7 years agotmf.ui: Add trace type preference page for trace type filtering
Jean-Christian Kouame [Mon, 27 Feb 2017 20:26:29 +0000 (15:26 -0500)] 
tmf.ui: Add trace type preference page for trace type filtering

This patch adds a preference page to activate selected trace types. User
can only see those activated trace types when he will use the 'Select
Trace Type...' command as well as for trace import and only activated
trace types will be considered for auto-detection. Experiment types are
not taken into account.

Change-Id: Iecd6c481d6cca3adc1d7e510580c55803d9413ee
Signed-off-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/92508
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-by: Hudson CI
7 years agotmf.ui: Add waitUntil#Predicate to WaitUtils
Jean-Christian Kouame [Thu, 23 Mar 2017 14:49:33 +0000 (10:49 -0400)] 
tmf.ui: Add waitUntil#Predicate to WaitUtils

This patch adds a waitUntil() method with a predicate for SWTBot test

Change-Id: I98b33e9a84b309eb251783b2678006866be48c76
Signed-off-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/93738
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-by: Hudson CI
7 years agotmf.ui: Fix import of ctf dependency into tmf.ui
Jean-Christian Kouame [Tue, 28 Mar 2017 17:23:13 +0000 (13:23 -0400)] 
tmf.ui: Fix import of ctf dependency into tmf.ui

dependency was introduced in  https://git.eclipse.org/r/92386

Change-Id: I0015b1dd19d99fdd57bc161ed7c756303131837b
Signed-off-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/94005
Reviewed-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
7 years agotmf.core: implement readEnd for CustomXmlTrace
Loïc Prieur-Drevon [Wed, 22 Mar 2017 15:00:27 +0000 (11:00 -0400)] 
tmf.core: implement readEnd for CustomXmlTrace

Change-Id: Ic4f6f7f829c503beeb0201e4be3dd4b189cc8169
Signed-off-by: Loïc Prieur-Drevon <loic.prieur.drevon@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/93623
Reviewed-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agotmf.core: implement readEnd for CustomTxtTrace
Loïc Prieur-Drevon [Wed, 22 Mar 2017 14:49:33 +0000 (10:49 -0400)] 
tmf.core: implement readEnd for CustomTxtTrace

Change-Id: Ieaf32d6dc66e0ae9ad0e293687a1e2882c0506ce
Signed-off-by: Loïc Prieur-Drevon <loic.prieur.drevon@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/93622
Reviewed-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agotmf: Bug 506660: Fix zoom out from 1 ns window range in time graph
Patrick Tasse [Tue, 14 Mar 2017 20:57:10 +0000 (16:57 -0400)] 
tmf: Bug 506660: Fix zoom out from 1 ns window range in time graph

Make sure that zooming out from 1 ns window range is possible with the
Zoom Out tool bar button.

Fix double to long rounding error when zooming out.

Make the 'focused' time (selection if visible, center of previous window
range otherwise) centered in the new window range when zooming out from
1 ns window range.

Keep the selection as 'focused' time when it is exactly one of the
previous window range bounds.

Snap the window range to the time bounds when zooming out of range.

Change-Id: I4501d178acf1c1383caecc95d5bf2b3ec534e602
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/93066
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
7 years agotmf.ui: Update JUL log points in common X line charts
Geneviève Bastien [Thu, 23 Mar 2017 15:06:50 +0000 (11:06 -0400)] 
tmf.ui: Update JUL log points in common X line charts

This will allow to analyze the command flow from the user interaction to
the views being updated with the new TraceCompassLogUtils API.

Change-Id: I640061e6a8eb3c19b17ee4a7025acd52aab47cd7
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/93743
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agocommon: Fix NPE in log arguments
Geneviève Bastien [Fri, 24 Mar 2017 13:58:57 +0000 (09:58 -0400)] 
common: Fix NPE in log arguments

Loggers should NEVER throw exceptions

Change-Id: I39f7ffd18735c6ee2919b76afaec1e1616702c30
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/93809
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agotmf.ui: Show a trace's time range in the project explorer
Loic Prieur-Drevon [Wed, 1 Mar 2017 14:43:57 +0000 (09:43 -0500)] 
tmf.ui: Show a trace's time range in the project explorer

This helps when working on experiments with several traces
to know the trace's time range without needing to display
it completely

Change-Id: I38cb9d2cac545d0b9062eda3301244996ee1feb1
Signed-off-by: Loic Prieur-Drevon <loic.prieur.drevon@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/92386
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-by: Hudson CI
7 years agocommon: Fix LoggerTest on Windows
Marc-Andre Laperle [Thu, 23 Mar 2017 19:19:33 +0000 (15:19 -0400)] 
common: Fix LoggerTest on Windows

\r was making it in the stored messages. It can be ignored.

Change-Id: I1e79a876e8cc5b610b8bccee234648dbe16bbf19
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/93761
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Hudson CI
7 years agotmf.core: add StateSystemAnalysisModule log point
Matthew Khouzam [Tue, 29 Nov 2016 21:47:27 +0000 (16:47 -0500)] 
tmf.core: add StateSystemAnalysisModule log point

Change-Id: I5ba890533d6c6149c5bd3c4fbec72493abcaa0a3
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/86080
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Reviewed-by: Hudson CI
7 years agocommon: Use a builder for FlowScopeLog
Geneviève Bastien [Wed, 22 Mar 2017 19:06:47 +0000 (15:06 -0400)] 
common: Use a builder for FlowScopeLog

The 3 available constructors for the FlowScopeLog class are hard to
differentiate because of the Object... parameter. It is error-prone, so
we use a builder instead to make clear which constructor is being
called.

Change-Id: I377f77353b3c0df2e7cbc2c0b8f326e894171f10
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/93650
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agotmf.ctf: Add unscaled time getter
Matthew Khouzam [Sat, 18 Mar 2017 03:17:35 +0000 (23:17 -0400)] 
tmf.ctf: Add unscaled time getter

This allows getting the unscaled timestamp without
rounding errors.

Change-Id: I5b09dd2211169e553a37997c9f5b0cf8581667af
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/93339
Reviewed-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
7 years agocommon.core: Introduce logger utils
Matthew Khouzam [Wed, 23 Nov 2016 21:57:40 +0000 (16:57 -0500)] 
common.core: Introduce logger utils

This patch begins to bring notions or a defined trace format.

It provides a "blessed" way of formatting data to have analyses work
out of the box. It also provides an easy and robust way of
instrumenting without having to worry about details like
TIDs and time stamps.

The usage is reminiscent of LTTng's tracepoint API, in that
the user must supply a list of arguments in the end alternating
between key and value. It is easier to list them this way rather
than forcing a Map, however, this may throw some illegal argument
exceptions.

There are four reference implementations available:

* Scoped logging for durations

This is a try-with-resources logger that makes call stack and
call graph analysis much easier to perform.

* Flow logs for durations and inter-threads relations

This is a try-with resources logger that makes call stack and
call graph analysis much easier to perform, but also shows
inter-thread dependencies.

* Object lifecycle tracking

This allows the tracking of Objects that have notions of "disposing"

* Asynchronous message support

This allows a standardized way to track message passing as well as
asynchronouse operations.

Features missing:

* Marker events.
* Counter events
* Sampling Events

This changes the loglevel of the state system logs, as more information
is stored, it needs more bandwitdth.

Change-Id: I8320fa4246b33442fe44e3ce3935a824cd28feac
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/85633
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Reviewed-by: Hudson CI
7 years agotmf: Fix Marker Set action handling
Patrick Tasse [Mon, 20 Mar 2017 21:37:28 +0000 (17:37 -0400)] 
tmf: Fix Marker Set action handling

When changing the active marker set, it didn't update the marker sources
when the opened trace is an experiment. The action only updated the
marker sources from the opened traces, but the marker sets were created
on each trace in the experiment's trace set, for the default
implementation of AbstractTimeGraphView.getTracesToBuild().

It wouldn't be good enough to update the traces using
TmfTraceManager.getTraceSet(), since we don't know the implementation of
getTracesToBuild() for each view. Also, calling
TmfTraceAdapterManager.getAdapters() on each opened trace could actually
create new adapter instances that weren't yet needed.

Instead the ConfigurableMarkerEventSource instances should handle the
TmfMarkerEventSourceUpdatedSignal, and reconfigure themselves.

Also, since the Marker Set menu items are radio, selecting a new marker
set first executes the action on the menu item that is being unchecked.
The action now only executes for the menu item that is being checked.

Change-Id: Ic8fd21b930ec29e8a619cbcedea712d4b7ee4d86
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/93463
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
7 years agotmf: Support X11 colors in marker configuration file
Patrick Tasse [Mon, 6 Mar 2017 19:23:12 +0000 (14:23 -0500)] 
tmf: Support X11 colors in marker configuration file

Change-Id: I72bf7a3492e9325dfb914cac56cc6f4cd3d88972
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/92210
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
7 years agotmf: Add X11 color registry
Patrick Tasse [Mon, 6 Mar 2017 19:22:26 +0000 (14:22 -0500)] 
tmf: Add X11 color registry

This adds a map of color name strings to RGB color values. It will allow
users to identify colors by name in dialogs, configuration files, etc.

Change-Id: I492292acfd864ebad418049e584c617c525f6106
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/92209
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
7 years agotmf: Fix a few exceptions that could happen when closing
Marc-Andre Laperle [Tue, 21 Mar 2017 19:17:02 +0000 (15:17 -0400)] 
tmf: Fix a few exceptions that could happen when closing

Change-Id: Ibe66165b06a9687a1f4044585bc87db3e2afd8a7
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/93569
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
7 years agotmf.core: Allow analyses to be used directly from a class
Matthew Khouzam [Tue, 21 Mar 2017 16:54:30 +0000 (12:54 -0400)] 
tmf.core: Allow analyses to be used directly from a class

SetTrace no longer throws an NPE if there is no extension registry.

Change-Id: If82c3e1e0ba880e1a9007aa5b22572eec5440df8
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/93554
Reviewed-by: Hudson CI
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
7 years agoreleng: update staging target for oxygen M6 builds
Bernd Hufmann [Wed, 15 Mar 2017 14:27:03 +0000 (10:27 -0400)] 
releng: update staging target for oxygen M6 builds

Change-Id: I6e91674c063d52c8d730d5fca43829cb1555fdeb
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/93124
Reviewed-by: Hudson CI
Reviewed-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Tested-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
7 years agotmf: Simplify SelectElementTypeContributionItem
Patrick Tasse [Mon, 20 Mar 2017 17:51:22 +0000 (13:51 -0400)] 
tmf: Simplify SelectElementTypeContributionItem

The class TmfTraceType already manages the list of available trace
types, including experiment types and custom trace types. Its list of
trace type helpers can be used to build the menu items.

The unused command parameters BUNDLE and ICON are removed.

Note that menu items will now be grouped by category name instead of
category id. If two different category id used the same name, they will
now be merged instead of showing two sub-menus with the same name.

The items in a category sub-menu will be sorted alphabetically.

Change-Id: I411e88ad34db66d4ec3d32d8e4e6390ca66b6c6a
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/93446
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
7 years agotmf: fix @since annotations
Matthew Khouzam [Sat, 18 Mar 2017 01:53:55 +0000 (21:53 -0400)] 
tmf: fix @since annotations

Fix some issues in CtfTmfTrace and TmfTrace

Change-Id: I7d2c87e060bbaeb59ff7ff2fb0d1bff8b3e04f99
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/93337
Reviewed-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
7 years agoreleng: update 4.6/4.5 targets to use neon/mars EMF version
Bernd Hufmann [Wed, 15 Mar 2017 17:59:46 +0000 (13:59 -0400)] 
releng: update 4.6/4.5 targets to use neon/mars EMF version

Change-Id: I57eda6b2a685027095b475bc87950a778097c031
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/93145
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-by: Hudson CI
7 years agotiming.swtbot: add flamegraph doubleclick on row test
Matthew Khouzam [Thu, 27 Oct 2016 20:30:23 +0000 (16:30 -0400)] 
timing.swtbot: add flamegraph doubleclick on row test

Change-Id: I1a9cfb265b0f84a717b48197b6b5848d85ba0333
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/84044
Reviewed-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
7 years agolttng: Fix a test on Windows with file not being able to be deleted
Marc-Andre Laperle [Tue, 14 Mar 2017 15:16:15 +0000 (11:16 -0400)] 
lttng: Fix a test on Windows with file not being able to be deleted

The synthetic trace was being regenerated while it was already opened.
So it was being used in a "nested way" in the test. The test was just
trying to reopen the trace using the path so pass the path instead which
does not try to delete/regenerate the trace.

Change-Id: If510d366f08a9f8895e667efe370bf9c70edcc5e
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/93033
Reviewed-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
This page took 0.048144 seconds and 5 git commands to generate.