package org.tizen.oprofile.core;
+import org.tizen.common.TizenPlatformConstants;
+
public abstract class OprofileCommonConstants {
- private static final String COMMAND_PATH = "/home/developer/sdk_tools/oprofile/usr/bin/";
+ private static final String COMMAND_PATH = TizenPlatformConstants.TOOLS_TARGET_PATH + "/oprofile/usr/bin/";
public static final String COMMAND_OPCONTROL = COMMAND_PATH+"opcontrol";
public static void checkProfilingTool(IProgressMonitor monitor)
throws Exception {
// find oprofile
- String oprofileCmd = "/home/developer/sdk_tools/oprofile/usr/bin/opcontrol";
+ String oprofileCmd = TizenPlatformConstants.TOOLS_TARGET_PATH + "/oprofile/usr/bin/opcontrol";
String cmd = "ls " + oprofileCmd + TizenPlatformConstants.CMD_SUFFIX;
// String resultRsp = session.run(cmd, null);
String[] resultRsp = CommandManager.runCommandReturningResultArray(cmd);
// if (CommandManager.isEmulator()) {
throw new Exception(TizenLaunchMessages.CANNOT_LAUNCH,
new Exception(
- "No oprofile in this target (/home/developer/sdk_tools/oprofile/usr/bin/opcontrol)."));
+ "No oprofile in this target (" + TizenPlatformConstants.TOOLS_TARGET_PATH + "/oprofile/usr/bin/opcontrol)."));
// } else {
// transferProfilingToolPackage(monitor);
// installProfilingToolPackage(monitor);
try {
// find Valgrind executable
- String valgrindCmd = "/home/developer/sdk_tools/valgrind/usr/bin/valgrind";
+ String valgrindCmd = TizenPlatformConstants.TOOLS_TARGET_PATH + "/valgrind/usr/bin/valgrind";
String cmd = "ls " + valgrindCmd + TizenPlatformConstants.CMD_SUFFIX;
String[] resultRsp = CommandManager.runCommandReturningResult(cmd);
if (!CommandManager.isRunSeccessfuly(resultRsp)) {
newCoreException(TizenLaunchMessages.CANNOT_LAUNCH, new Exception(
- "No valgrind in this target (/home/developer/sdk_tools/valgrind/usr/bin/valgrind)."));
+ "No valgrind in this target (" + TizenPlatformConstants.TOOLS_TARGET_PATH + "/valgrind/usr/bin/valgrind)."));
}
if (monitor.isCanceled())