From 163bde9c5c8fdb69d37433c715851a1b5e96651e Mon Sep 17 00:00:00 2001 From: jooyoul_lee Date: Fri, 1 Nov 2013 17:37:01 +0900 Subject: [PATCH] [Title] fix arg api [Desc.] [Issue] --- .../src/org/tizen/dynamicanalyzer/swap/model/data/ArgsInfo.java | 9 ++++++--- .../org/tizen/dynamicanalyzer/swap/model/data/ProfileData.java | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/swap/model/data/ArgsInfo.java b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/swap/model/data/ArgsInfo.java index 43ef297..7f883a0 100644 --- a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/swap/model/data/ArgsInfo.java +++ b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/swap/model/data/ArgsInfo.java @@ -40,13 +40,16 @@ public class ArgsInfo { } public String getArgs() { + return args; + } + + public String getProfileArgs() { int index = args.indexOf(CommonConstants.COMMA); if (index < 0) { return CommonConstants.EMPTY; } - String ret = args.substring(index + 2, args.length()); - if (ret.equals("a")) - { + String ret = args.substring(index + 2, args.length()); + if (ret.equals("a")) { System.out.println("debug"); } return ret; diff --git a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/swap/model/data/ProfileData.java b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/swap/model/data/ProfileData.java index 96f3c09..b74399a 100644 --- a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/swap/model/data/ProfileData.java +++ b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/swap/model/data/ProfileData.java @@ -94,7 +94,7 @@ public class ProfileData extends LogData { cpuNum = ByteUtils.toInt(data, index); index += INT_SIZE; ArgsInfo info = LogDataUtils.parseArgs(data, index); - args = info.getArgs(); + args = info.getProfileArgs(); break; case MSG_FUNCTION_EXIT: logCount++; -- 2.7.4