ctf: expose UTC offset in trace properties
[deliverable/tracecompass.git] / ctf / org.eclipse.tracecompass.tmf.ctf.core / src / org / eclipse / tracecompass / tmf / ctf / core / trace / CtfTmfTrace.java
index 878da4a2e2ce39d9fa30c07581b1120303ab1b35..2f6435cf3ef84408495389c0ee489b6079e5b545 100644 (file)
@@ -88,6 +88,12 @@ public class CtfTmfTrace extends TmfTrace
     // Constants
     // -------------------------------------------
 
+    /**
+     * Clock offset property
+     * @since 2.0
+     */
+    public static final String CLOCK_OFFSET = "clock_offset"; //$NON-NLS-1$
+
     /**
      * Default cache size for CTF traces
      */
@@ -432,6 +438,7 @@ public class CtfTmfTrace extends TmfTrace
     public Map<String, String> getTraceProperties() {
         Map<String, String> properties = new HashMap<>();
         properties.putAll(fTrace.getEnvironment());
+        properties.put(CLOCK_OFFSET, Long.toUnsignedString(fTrace.getOffset()));
         properties.put(Messages.CtfTmfTrace_HostID, getHostId());
         return properties;
     }
This page took 0.025653 seconds and 5 git commands to generate.