INTERNAL: add define for min / max probe message id 94/29794/1
authorgreatim <jaewon81.lim@samsung.com>
Tue, 4 Nov 2014 11:51:58 +0000 (20:51 +0900)
committergreatim <jaewon81.lim@samsung.com>
Tue, 4 Nov 2014 11:51:58 +0000 (20:51 +0900)
add defind for min / max probe message id

Change-Id: Ib4a945c0f693cffd6e0ad372f5b71c39d45faa20
Signed-off-by: greatim <jaewon81.lim@samsung.com>
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/swap/channel/data/DataChannelConstants.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/swap/logparser/MessageParser.java

index f86c359..85d9c5e 100644 (file)
@@ -47,6 +47,9 @@ public class DataChannelConstants {
        /* Custom Message Type */
        public final static int MSG_FUCNTION_ENTRY_EXIT = 0x0900;
 
+       // lowest message id value for probe log
+       public final static int MSG_PROBE_MIN = 0x0101;
+       
        public final static int MSG_PROBE_MEMORY = 0x0101;
        public final static int MSG_PROBE_UICONTROL = 0x0102;
        public final static int MSG_PROBE_UIEVENT = 0x0103;
@@ -59,4 +62,7 @@ public class DataChannelConstants {
        public final static int MSG_PROBE_SYNC = 0x0110;
        public final static int MSG_PROBE_NETWORK = 0x0111;
        public final static int MSG_PROBE_GLES20 = 0x0112;
+       
+       // ===!!! update this value if probe message type is added !!!===
+       public final static int MSG_PROBE_MAX = 0x0112;
 }
index 20f64ef..5c62ccd 100755 (executable)
@@ -551,7 +551,8 @@ public class MessageParser {
                case DataChannelConstants.MSG_DATA_IMAGE:
                        break;
                default:
-                       if (id > 0x0100 && id < 0x0200) { // MSG_PROBE
+                       if (id >= DataChannelConstants.MSG_PROBE_MIN
+                                       && id <= DataChannelConstants.MSG_PROBE_MAX) { // MSG_PROBE
                                if (AnalyzerManager.isProcessInfoArrived()) {
                                        log = LogDataFactory.createInstance(data);
                                        if (null != log) {