tmf: Add support for partial state system history
authorAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Tue, 5 Mar 2013 16:55:27 +0000 (11:55 -0500)
committerAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Wed, 13 Mar 2013 19:40:15 +0000 (15:40 -0400)
commit1b9d3765cd486e9513f199d8d74c9c0e76cbad09
treeef0a91baa24e9c16e954894538d166333487a085
parentb33f75549f59706c96a0440046a7b11fe154cdb9
tmf: Add support for partial state system history

A partial history is like a shim between a trace's state system
and a "standard" history backend.

In a standard history, all state intervals are inserted into the
backend. With a partial history, only the intervals that cross
pre-determined checkpoints are inserted. To rebuild any state
between checkpoints, we load the previous checkpoint and re-read
the events in the trace between the checkpoint and the time of
the query.

Partial histories do not support single queries. While those
could be implemented by using a full-query, it seemed to cause
problems with range queries, where multiple state/event queries
happen in parallel (which is not so bad, range-query performance
would be absolutely disastrous!).

Change-Id: Iad709a00d630a40bf5a1c2e13d55d901f9a1eaa5
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/10990
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bhufmann@gmail.com>
IP-Clean: Bernd Hufmann <bhufmann@gmail.com>
org.eclipse.linuxtools.lttng2.kernel.core.tests/src/org/eclipse/linuxtools/lttng2/kernel/core/tests/stateprovider/PartialStateSystemTest.java [new file with mode: 0644]
org.eclipse.linuxtools.tmf.core/META-INF/MANIFEST.MF
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/internal/tmf/core/statesystem/backends/partial/PartialHistoryBackend.java [new file with mode: 0644]
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/internal/tmf/core/statesystem/backends/partial/PartialStateSystem.java [new file with mode: 0644]
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/statesystem/AbstractStateChangeInput.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/statesystem/StateSystemManager.java
This page took 0.030801 seconds and 5 git commands to generate.