| author | Matthew Khouzam | 2012-03-20 14:04:33 (EDT) |
|---|---|---|
| committer | Francois Chouinard | 2012-04-16 14:19:56 (EDT) |
| commit | e82442d1b98114579637f1cd4139a25216ccd833 (patch) (side-by-side diff) | |
| tree | a2bf4d0e5d7b7ecbf904544776894f4bf4a7325a | |
| parent | 24107ab70633b4a3229fc57dae2af02d5296ee62 (diff) | |
| download | org.eclipse.linuxtools-e82442d1b98114579637f1cd4139a25216ccd833.zip org.eclipse.linuxtools-e82442d1b98114579637f1cd4139a25216ccd833.tar.gz org.eclipse.linuxtools-e82442d1b98114579637f1cd4139a25216ccd833.tar.bz2 | |
Added getOffset to a trace and updated benchmark.
| -rw-r--r-- | lttng/org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/trace/CTFTrace.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lttng/org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/trace/CTFTrace.java b/lttng/org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/trace/CTFTrace.java index fefbc59..f22c454 100644 --- a/lttng/org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/trace/CTFTrace.java +++ b/lttng/org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/trace/CTFTrace.java @@ -632,4 +632,12 @@ public class CTFTrace implements IDefinitionScope { return null; } + public long getOffset() { + if(getClock() == null ) + { + return 0; + } + return (Long) getClock().getProperty("offset"); + } + } |

