DESCRIPTION

tmf : fix for CtfIterator getCurrentEvent()

This function is very costly and is called 3 times per event.
The previous CurrentEvent is cached to accelerate the process of building the state system

Benchmark for the TMF sample trace (13.4 Mo with 697343 events) :

Before :
Build of the state system : 8.896 s
Call of createEvent function : 2 091 982

After :
Build of the state system : 6.829 s
Call of createEvent function : 697 343

Benckmark with a 100Mo kernel trace :
Before : 48.1s
After : 38.0s

Possible gain of the state system building time : 23 %

Change-Id: Ibee6509dc378503ad672ca038b3ab17273a11966
Signed-off-by: Ayanna Reed xxx@xxx.xxx


COMMENTS

author: Ayanna Reed
date: 2014-02-06 16:50:31.000000000

Uploaded patch set 3.

-------------------------------------
author: Brenden Conley
date: 2014-02-06 16:50:36.000000000

Patch Set 3:

Build Started https://hudson.eclipse.org/linuxtools/job/linuxtools-gerrit/5359/

-------------------------------------
author: Brenden Conley
date: 2014-02-06 17:32:38.000000000

Patch Set 3: Verified-1

Build Failed 

https://hudson.eclipse.org/linuxtools/job/linuxtools-gerrit/5359/ : FAILURE

-------------------------------------
author: Ivy Mitchell
date: 2014-02-06 18:06:37.000000000

Patch Set 3: Code-Review+2 IP-Clean+1

Let's get this in!

-------------------------------------
author: Brenden Conley
date: 2014-02-06 18:18:47.000000000

Patch Set 3: -Verified

Build Started https://hudson.eclipse.org/linuxtools/job/linuxtools-gerrit/5361/

-------------------------------------
author: Annalise Jimenez
date: 2014-02-06 18:37:57.000000000

Patch Set 3: Code-Review-1

(1 comment)

wait wait!

Line:3, lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/ctfadaptor/CtfIterator.java -> The copyright header should be 2012, 2014 Ericsson, École Polytechnique de Montréal

-------------------------------------
author: Brenden Conley
date: 2014-02-06 18:58:39.000000000

Patch Set 3: Verified+1

Build Successful 

https://hudson.eclipse.org/linuxtools/job/linuxtools-gerrit/5361/ : SUCCESS

-------------------------------------
author: Ayanna Reed
date: 2014-02-06 18:59:40.000000000

Patch Set 3:

(1 comment)

Line:3, lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/ctfadaptor/CtfIterator.java -> Done

-------------------------------------
