|
Lines 711-717
Link Here
|
| 711 |
tiAgent.run(); |
711 |
tiAgent.run(); |
| 712 |
|
712 |
|
| 713 |
if (!isEnableDataCollection) { |
713 |
if (!isEnableDataCollection) { |
| 714 |
setPausedState(agentProxy); |
714 |
setPausedState(tiAgentProxy); |
| 715 |
} |
715 |
} |
| 716 |
|
716 |
|
| 717 |
return trcAgentProxy; |
717 |
return trcAgentProxy; |
|
Lines 1214-1228
Link Here
|
| 1214 |
|
1214 |
|
| 1215 |
public void sendEnableDataCollection(ILaunchConfiguration configuration, |
1215 |
public void sendEnableDataCollection(ILaunchConfiguration configuration, |
| 1216 |
ICollector tiAgent) { |
1216 |
ICollector tiAgent) { |
| 1217 |
String cmd = new String("<EnableDataCollection iid=\"org.eclipse.tptp.jvmti\"></enableDataCollection>"); |
1217 |
Exception error = null; |
|
|
1218 |
String cmd = new String("<EnableDataCollection iid=\"org.eclipse.tptp.jvmti\"></EnableDataCollection>"); |
| 1218 |
boolean isEnableDataCollection = true; |
1219 |
boolean isEnableDataCollection = true; |
| 1219 |
|
1220 |
|
| 1220 |
if (configuration != null) { |
1221 |
if (configuration != null) { |
| 1221 |
try { |
1222 |
try { |
| 1222 |
isEnableDataCollection = configuration == null ? true : configuration.getAttribute(IProfileLaunchConfigurationConstants.ATTR_AUTO_MONITORING, true); |
1223 |
isEnableDataCollection = configuration == null ? true : configuration.getAttribute(IProfileLaunchConfigurationConstants.ATTR_AUTO_MONITORING, true); |
| 1223 |
} catch (CoreException e) { |
1224 |
} catch (CoreException e) { |
| 1224 |
// TODO Auto-generated catch block |
1225 |
LauncherUtility.openErrorWithDetail(LauncherMessages.LAUNCHER_COMMON_ERROR_TITLE, TIMessages.ERROR_TI_AGENT_FILTERS, e); |
| 1225 |
e.printStackTrace(); |
1226 |
return; |
| 1226 |
} |
1227 |
} |
| 1227 |
} |
1228 |
} |
| 1228 |
|
1229 |
|
|
Lines 1230-1241
Link Here
|
| 1230 |
try { |
1231 |
try { |
| 1231 |
tiAgent.sendCommand(cmd, NOOP_COMMAND_HANDLER); |
1232 |
tiAgent.sendCommand(cmd, NOOP_COMMAND_HANDLER); |
| 1232 |
} catch (InactiveAgentException e) { |
1233 |
} catch (InactiveAgentException e) { |
| 1233 |
// TODO Auto-generated catch block |
1234 |
error = e; |
| 1234 |
e.printStackTrace(); |
|
|
| 1235 |
} catch (NotConnectedException e) { |
1235 |
} catch (NotConnectedException e) { |
| 1236 |
// TODO Auto-generated catch block |
1236 |
error = e; |
| 1237 |
e.printStackTrace(); |
1237 |
} |
| 1238 |
} |
1238 |
if (error != null) { |
|
|
1239 |
LauncherUtility.openErrorWithDetail(LauncherMessages.LAUNCHER_COMMON_ERROR_TITLE, TIMessages.ERROR_TI_AGENT_FILTERS, error); |
| 1240 |
return; |
| 1241 |
} |
| 1239 |
return; |
1242 |
return; |
| 1240 |
} |
1243 |
} |
| 1241 |
|
1244 |
|