ss: Add a JUL statement for HT backend file size
authorGeneviève Bastien <gbastien+lttng@versatic.net>
Thu, 6 Oct 2016 20:59:21 +0000 (16:59 -0400)
committerGenevieve Bastien <gbastien+lttng@versatic.net>
Fri, 4 Nov 2016 13:14:23 +0000 (09:14 -0400)
Change-Id: Ib8965540a7456e8c303791df783733080760cb15
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/83822
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
statesystem/org.eclipse.tracecompass.statesystem.core/src/org/eclipse/tracecompass/internal/statesystem/core/backend/historytree/HistoryTreeBackend.java

index 2aaa1e390c6ed9e271ef8a9566daaac781f50a76..3b021c12081d01ca86de97874dce60b86b97d60d 100644 (file)
@@ -22,8 +22,10 @@ import java.nio.channels.ClosedChannelException;
 import java.util.Deque;
 import java.util.LinkedList;
 import java.util.List;
+import java.util.logging.Logger;
 
 import org.eclipse.jdt.annotation.NonNull;
+import org.eclipse.tracecompass.common.core.log.TraceCompassLog;
 import org.eclipse.tracecompass.internal.statesystem.core.Activator;
 import org.eclipse.tracecompass.statesystem.core.backend.IStateHistoryBackend;
 import org.eclipse.tracecompass.statesystem.core.exceptions.StateSystemDisposedException;
@@ -42,6 +44,8 @@ import com.google.common.annotations.VisibleForTesting;
  */
 public class HistoryTreeBackend implements IStateHistoryBackend {
 
+    private static final Logger LOGGER = TraceCompassLog.getLogger(HistoryTreeBackend.class);
+
     private final @NonNull String fSsid;
 
     /**
@@ -251,6 +255,7 @@ public class HistoryTreeBackend implements IStateHistoryBackend {
     @Override
     public void dispose() {
         if (fFinishedBuilding) {
+            LOGGER.info(() -> "[HistoryTreeBackend:ClosingFile] size=" + getSHT().getFileSize());  //$NON-NLS-1$
             getSHT().closeFile();
         } else {
             /*
This page took 0.026274 seconds and 5 git commands to generate.