tmf: Tweaks to CallStackStateProvider
authorAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Wed, 11 Sep 2013 20:09:36 +0000 (16:09 -0400)
committerAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Tue, 17 Sep 2013 22:18:20 +0000 (18:18 -0400)
commitb489a029a8762befe542695fa37df1cecd50f2e1
treeb7562466a08382f70217f20d2857a1b17eab6190
parenta627ffb8c4bb385ab886d33fbb25655a848d96ad
tmf: Tweaks to CallStackStateProvider

- Add a considerEvent() method to put all checks in. This avoids
  running checks more than once per event.
- Make the abstract methods protected instead, they should not be called
  by external components.
- Add a check when popping state values if func_exit names are available.
  This makes sure the value matches the current function we are in. If it
  doesn't, log a warning in the error log. This will most definitely happen
  if there are lost events in the trace.

Change-Id: I1f2014486768c9317cbddb9556faf3e061f130b0
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/16393
Tested-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
IP-Clean: Patrick Tasse <patrick.tasse@gmail.com>
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/callstack/CallStackStateProvider.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/callstack/Messages.java [new file with mode: 0644]
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/callstack/messages.properties [new file with mode: 0644]
This page took 0.02759 seconds and 5 git commands to generate.