[CALLSTACK] insert callstackdata into DB for every 5000 data 60/33460/1
authorwoojin <woojin2.jung@samsung.com>
Mon, 12 Jan 2015 00:31:27 +0000 (09:31 +0900)
committerwoojin <woojin2.jung@samsung.com>
Mon, 12 Jan 2015 00:31:27 +0000 (09:31 +0900)
increase the number of callstackdata held before DB insertion
100 -> 5000
it decreases making time of probe callstack drastically when sampling feature is off

Change-Id: I92fc3f89cc6eb13d71075ff20b68e7d4c7f84907
Signed-off-by: woojin <woojin2.jung@samsung.com>
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/info/callstack/CallStackInserter.java

index 4756475..d7e6253 100644 (file)
@@ -50,7 +50,7 @@ public class CallStackInserter implements Runnable {
        private ConcurrentLinkedQueue<CallStackData> callstackDataQueue = new ConcurrentLinkedQueue<CallStackData>();
        private ConcurrentLinkedQueue<CallStackUnit> callstackUnitQueue = new ConcurrentLinkedQueue<CallStackUnit>();
        private static volatile Thread inserterThread = null;
-       private static final int FULL_COUNT = 100;
+       private static final int FULL_COUNT = 5000;
        private static boolean stopTrace = false;
        private static long lastInsertSeq = -1;