[Esbox-commits] r1895 - in branches/work_Andre/org.maemo.esbox.launch.analysis: . src/org/maemo/esbox/internal/analysis/launch

fabricioepa at garage.maemo.org fabricioepa at garage.maemo.org
Mon Jul 27 20:12:49 EEST 2009


Author: fabricioepa
Date: 2009-07-27 20:12:49 +0300 (Mon, 27 Jul 2009)
New Revision: 1895

Added:
   branches/work_Andre/org.maemo.esbox.launch.analysis/src/org/maemo/esbox/internal/analysis/launch/ESboxCppLtraceRemoteLaunchConfigurationTabGroup.java
   branches/work_Andre/org.maemo.esbox.launch.analysis/src/org/maemo/esbox/internal/analysis/launch/ESboxCppLtraceRemoteLaunchShortcut.java
   branches/work_Andre/org.maemo.esbox.launch.analysis/src/org/maemo/esbox/internal/analysis/launch/ESboxPythonLtraceRemoteLaunchConfigurationTabGroup.java
   branches/work_Andre/org.maemo.esbox.launch.analysis/src/org/maemo/esbox/internal/analysis/launch/ESboxPythonLtraceRemoteLaunchShortcut.java
Modified:
   branches/work_Andre/org.maemo.esbox.launch.analysis/plugin.xml
   branches/work_Andre/org.maemo.esbox.launch.analysis/src/org/maemo/esbox/internal/analysis/launch/IESboxAnalysisLaunchConstants.java
Log:
remote ltrace support

Modified: branches/work_Andre/org.maemo.esbox.launch.analysis/plugin.xml
===================================================================
--- branches/work_Andre/org.maemo.esbox.launch.analysis/plugin.xml	2009-07-24 20:19:01 UTC (rev 1894)
+++ branches/work_Andre/org.maemo.esbox.launch.analysis/plugin.xml	2009-07-27 17:12:49 UTC (rev 1895)
@@ -37,7 +37,15 @@
             sourcePathComputerId="org.eclipse.cdt.debug.core.sourcePathComputer">
       </launchConfigurationType>
       
-
+	 <launchConfigurationType
+            delegate="org.maemo.mica.cpp.launch.analysis.ltrace.CppLtraceRemoteLaunchDelegate"
+            id="org.maemo.esbox.analysis.launch.cpp.LtraceRemoteLaunchType"
+            modes="profile"
+            name="Remote Ltrace Profiler"
+            public="true"
+            sourceLocatorId="org.eclipse.cdt.debug.core.sourceLocator"
+            sourcePathComputerId="org.eclipse.cdt.debug.core.sourcePathComputer">
+      </launchConfigurationType>
  	</extension>
     <extension
          point="org.eclipse.debug.ui.launchConfigurationTabGroups">
@@ -54,9 +62,15 @@
       
      <launchConfigurationTabGroup
             class="org.maemo.esbox.internal.analysis.launch.ESboxCppLtraceLocalLaunchConfigurationTabGroup"
-            id="valgrindLaunchTabGroup"
+            id="ltraceLocalLaunchTabGroup"
             type="org.maemo.esbox.analysis.launch.cpp.LtraceLocalLaunchType">
       </launchConfigurationTabGroup>
+      
+     <launchConfigurationTabGroup
+            class="org.maemo.esbox.internal.analysis.launch.ESboxCppLtraceRemoteLaunchConfigurationTabGroup"
+            id="ltraceRemoteLaunchTabGroup"
+            type="org.maemo.esbox.analysis.launch.cpp.LtraceRemoteLaunchType">
+      </launchConfigurationTabGroup>
 	</extension>
 	
  	
@@ -76,9 +90,14 @@
       <launchConfigurationTypeImage
             configTypeID="org.maemo.esbox.analysis.launch.cpp.LtraceLocalLaunchType"
             icon="icons/full/obj16/valgrind_local.gif"
-            id="ltraceLaunchTypeImage">
+            id="ltraceLocalLaunchTypeImage">
       </launchConfigurationTypeImage>
- 		
+      
+      <launchConfigurationTypeImage
+            configTypeID="org.maemo.esbox.analysis.launch.cpp.LtraceRemoteLaunchType"
+            icon="icons/full/obj16/valgrind_local.gif"
+            id="ltraceRemoteLaunchTypeImage">
+      </launchConfigurationTypeImage>
  	</extension>
  	
    <extension
@@ -201,7 +220,55 @@
                id="org.maemo.esbox.analysis.launch.cpp.LtraceLocalLaunchType">
          </configurationType>
       </shortcut>
+ 	 
+ 	 <shortcut
+            class="org.maemo.esbox.internal.analysis.launch.ESboxCppLtraceRemoteLaunchShortcut"
+            icon="icons/full/obj16/valgrind_local.gif"
+            id="maemoLtraceShortcut"
+            label="Remote Ltrace Profiler"
+            modes="profile">
+         <contextualLaunch>
+            <enablement>
+               <with
+                     variable="selection">
+                  <count
+                        value="1">
+                  </count>
+                  <iterate>
+                   <and>
+	                     <test
+		                      forcePluginActivation="true"
+                              property="org.maemo.mica.common.hasNature"
+ 		                      value="org.maemo.esbox.cpp.project.cppNature"/>
+
+                        <test
+                              forcePluginActivation="true"
+                              property="org.maemo.mica.maemosdk.isRemoteTarget"/>
+                              
+                        <test
+	                              forcePluginActivation="true"
+	                              property="org.maemo.mica.maemosdk.isARMELTarget"/>
+	                              
+                        <test
+                              forcePluginActivation="true"
+                              property="org.maemo.mica.maemosdk.isEmulatorTarget"/>
+                       <test
+                          	  forcePluginActivation="true"
+                          	  property="org.maemo.mica.cpp.isCppLaunchable"/>
+
+                    </and> 
+                    </iterate>
+               </with></enablement>
+            <contextLabel
+                  label="Remote Ltrace Profiler"
+                  mode="profile">
+            </contextLabel></contextualLaunch>
+         <configurationType
+               id="org.maemo.esbox.analysis.launch.cpp.LtraceRemoteLaunchType">
+         </configurationType>
+      </shortcut>
  	
+ 	
  	</extension>
  	
  	<!-- Python -->
@@ -232,6 +299,14 @@
             public="true">
       </launchConfigurationType>
       
+     <launchConfigurationType
+            delegate="org.maemo.mica.python.launch.analysis.ltrace.PythonLtraceRemoteLaunchDelegate"
+            id="org.maemo.esbox.analysis.launch.python.LtraceRemoteLaunchType"
+            modes="profile"
+            name="Remote Ltrace Profiler (Python)"
+            public="true">
+      </launchConfigurationType>
+      
 	</extension>
    <extension
          point="org.eclipse.debug.ui.launchConfigurationTypeImages">
@@ -249,9 +324,16 @@
      <launchConfigurationTypeImage
             configTypeID="org.maemo.esbox.analysis.launch.python.LtraceLocalLaunchType"
             icon="icons/full/obj16/valgrind_local.gif"
-            id="esboxPythonLtraceLaunchTypeImage">
+            id="esboxPythonLtraceLocalLaunchTypeImage">
       </launchConfigurationTypeImage>
+      
+     <launchConfigurationTypeImage
+            configTypeID="org.maemo.esbox.analysis.launch.python.LtraceRemoteLaunchType"
+            icon="icons/full/obj16/valgrind_local.gif"
+            id="esboxPythonLtraceRemoteLaunchTypeImage">
+      </launchConfigurationTypeImage>
 	</extension>
+	
     <extension
          point="org.eclipse.debug.ui.launchConfigurationTabGroups">
       <launchConfigurationTabGroup
@@ -270,6 +352,13 @@
             id="org.maemo.esbox.analysis.launch.python.LtraceLocalLaunchTabGroup"
             type="org.maemo.esbox.analysis.launch.python.LtraceLocalLaunchType">
       </launchConfigurationTabGroup>
+      
+      <launchConfigurationTabGroup
+            class="org.maemo.esbox.internal.analysis.launch.ESboxPythonLtraceRemoteLaunchConfigurationTabGroup"
+            id="org.maemo.esbox.analysis.launch.python.LtraceRemoteLaunchTabGroup"
+            type="org.maemo.esbox.analysis.launch.python.LtraceRemoteLaunchType">
+      </launchConfigurationTabGroup>
+      
 	</extension>
    <extension
          point="org.eclipse.debug.ui.launchShortcuts">
@@ -361,9 +450,9 @@
          <configurationType
                id="org.maemo.esbox.analysis.launch.python.OProfileRemoteLaunchType">
          </configurationType>
-         
-         
-          <shortcut
+        </shortcut>
+        
+         <shortcut
               class="org.maemo.esbox.internal.analysis.launch.ESboxPythonLtraceLocalLaunchShortcut"
               icon="icons/full/obj16/valgrind_local.gif"
               id="org.maemo.esbox.analysis.launch.python.LocalLtraceShortcut"
@@ -405,7 +494,57 @@
 	               id="org.maemo.esbox.analysis.launch.python.LtraceLocalLaunchType">
 	         </configurationType>        	
         </shortcut>
-    	        	
+        
+        
+         <shortcut
+              class="org.maemo.esbox.internal.analysis.launch.ESboxPythonLtraceRemoteLaunchShortcut"
+              icon="icons/full/obj16/valgrind_local.gif"
+              id="org.maemo.esbox.analysis.launch.python.RemoteLtraceShortcut"
+              label="Remote Ltrace Profiler (Python)"
+              modes="profile">
+        	<contextualLaunch>
+            	<enablement>
+               		<with
+                     	variable="selection">
+                  	<count
+                        value="1">
+                  	</count>
+                  	<iterate>
+                  		<and>
+	                     <test
+		                     	 forcePluginActivation="true"
+                              	 property="org.maemo.mica.common.hasNature"
+ 			                     value="org.maemo.esbox.python.project.pythonNature"/>
+		                    <test
+	                              forcePluginActivation="true"
+	                              property="org.maemo.mica.maemosdk.isEmulatorTarget"/>
+	                       <test
+	                          	forcePluginActivation="true"
+	                          	property="org.maemo.mica.python.isPythonLaunchable"/>
+	                        
+	                        <test
+	                              forcePluginActivation="true"
+	                              property="org.maemo.mica.maemosdk.isRemoteTarget"/>
+	                        
+	                        <test
+	                              forcePluginActivation="true"
+	                              property="org.maemo.mica.maemosdk.isARMELTarget"/>
+
+	                     </and>
+                  	</iterate>
+               		</with>
+            	</enablement>
+            	<contextLabel
+                  label="Remote Ltrace Python Profiler"
+                  mode="profile">
+            	</contextLabel>
+        	</contextualLaunch>
+ 			<!-- this maps the shortcut back to the launch configuration type,
+	         allowing the Run/Debug Settings UI in the Resource properties view 
+	         to show associated launch configs -->
+	         <configurationType
+	               id="org.maemo.esbox.analysis.launch.python.LtraceRemoteLaunchType">
+	         </configurationType>        	
         </shortcut>
 	</extension>	   
  	      

Added: branches/work_Andre/org.maemo.esbox.launch.analysis/src/org/maemo/esbox/internal/analysis/launch/ESboxCppLtraceRemoteLaunchConfigurationTabGroup.java
===================================================================
--- branches/work_Andre/org.maemo.esbox.launch.analysis/src/org/maemo/esbox/internal/analysis/launch/ESboxCppLtraceRemoteLaunchConfigurationTabGroup.java	                        (rev 0)
+++ branches/work_Andre/org.maemo.esbox.launch.analysis/src/org/maemo/esbox/internal/analysis/launch/ESboxCppLtraceRemoteLaunchConfigurationTabGroup.java	2009-07-27 17:12:49 UTC (rev 1895)
@@ -0,0 +1,32 @@
+/*******************************************************************************
+ * Copyright (c) 2009 Nokia Corporation
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ *    Fabrício S Epaminondas (UFCG) - initial API and implementation
+ *******************************************************************************/
+
+package org.maemo.esbox.internal.analysis.launch;
+
+import org.maemo.mica.cpp.launch.analysis.ltrace.AbstractCppLtraceRemoteLaunchConfigurationTabGroup;
+import org.maemo.mica.internal.api.cpp.launch.AbstractCppLaunchShortcut;
+
+/**
+ * @author Fabrício S Epaminondas (UFCG)
+ *
+ */
+public class ESboxCppLtraceRemoteLaunchConfigurationTabGroup extends
+			AbstractCppLtraceRemoteLaunchConfigurationTabGroup{
+
+	/* (non-Javadoc)
+	 * @see org.maemo.mica.internal.api.cpp.launch.AbstractCppLaunchConfigurationTabGroup#getLaunchShortcut()
+	 */
+	@Override
+	protected AbstractCppLaunchShortcut getLaunchShortcut() {
+		return new ESboxCppLtraceRemoteLaunchShortcut();
+	}
+
+}

Added: branches/work_Andre/org.maemo.esbox.launch.analysis/src/org/maemo/esbox/internal/analysis/launch/ESboxCppLtraceRemoteLaunchShortcut.java
===================================================================
--- branches/work_Andre/org.maemo.esbox.launch.analysis/src/org/maemo/esbox/internal/analysis/launch/ESboxCppLtraceRemoteLaunchShortcut.java	                        (rev 0)
+++ branches/work_Andre/org.maemo.esbox.launch.analysis/src/org/maemo/esbox/internal/analysis/launch/ESboxCppLtraceRemoteLaunchShortcut.java	2009-07-27 17:12:49 UTC (rev 1895)
@@ -0,0 +1,27 @@
+/*******************************************************************************
+ * Copyright (c) 2009 Nokia Corporation
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ *    Fabrício S Epaminondas (UFCG) - initial API and implementation
+ *******************************************************************************/
+
+package org.maemo.esbox.internal.analysis.launch;
+
+import org.eclipse.debug.ui.ILaunchShortcut;
+import org.maemo.mica.cpp.launch.analysis.ltrace.AbstractCppLtraceRemoteLaunchShortcut;
+
+/**
+ * @author Fabrício S Epaminondas (UFCG)
+ *
+ */
+public class ESboxCppLtraceRemoteLaunchShortcut extends
+		AbstractCppLtraceRemoteLaunchShortcut implements ILaunchShortcut {
+	public String getLaunchConfigurationType() {
+		return IESboxAnalysisLaunchConstants.CPP_LTRACE_REMOTE_LAUNCH_TYPE;
+	}
+
+}

Added: branches/work_Andre/org.maemo.esbox.launch.analysis/src/org/maemo/esbox/internal/analysis/launch/ESboxPythonLtraceRemoteLaunchConfigurationTabGroup.java
===================================================================
--- branches/work_Andre/org.maemo.esbox.launch.analysis/src/org/maemo/esbox/internal/analysis/launch/ESboxPythonLtraceRemoteLaunchConfigurationTabGroup.java	                        (rev 0)
+++ branches/work_Andre/org.maemo.esbox.launch.analysis/src/org/maemo/esbox/internal/analysis/launch/ESboxPythonLtraceRemoteLaunchConfigurationTabGroup.java	2009-07-27 17:12:49 UTC (rev 1895)
@@ -0,0 +1,31 @@
+/*******************************************************************************
+ * Copyright (c) 2009 Nokia Corporation
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ *     Fabrício S Epaminondas (UFCG) - initial API and implementation
+ *******************************************************************************/
+
+package org.maemo.esbox.internal.analysis.launch;
+
+import org.maemo.mica.python.launch.analysis.ltrace.AbstractPythonLtraceRemoteLaunchConfigurationTabGroup;
+import org.maemo.mica.python.launch.analysis.ltrace.AbstractPythonLtraceRemoteLaunchShortcut;
+
+/**
+ * @author  Fabrício S Epaminondas (UFCG)
+ *
+ */
+public class ESboxPythonLtraceRemoteLaunchConfigurationTabGroup extends
+		AbstractPythonLtraceRemoteLaunchConfigurationTabGroup{
+
+	/* (non-Javadoc)
+	 * @see org.maemo.mica.python.launch.analysis.ltrace.AbstractPythonLtraceRemoteLaunchConfigurationTabGroup#getLaunchShortcut()
+	 */
+	@Override
+	protected AbstractPythonLtraceRemoteLaunchShortcut getLaunchShortcut() {
+		return new ESboxPythonLtraceRemoteLaunchShortcut();
+	}
+}

Added: branches/work_Andre/org.maemo.esbox.launch.analysis/src/org/maemo/esbox/internal/analysis/launch/ESboxPythonLtraceRemoteLaunchShortcut.java
===================================================================
--- branches/work_Andre/org.maemo.esbox.launch.analysis/src/org/maemo/esbox/internal/analysis/launch/ESboxPythonLtraceRemoteLaunchShortcut.java	                        (rev 0)
+++ branches/work_Andre/org.maemo.esbox.launch.analysis/src/org/maemo/esbox/internal/analysis/launch/ESboxPythonLtraceRemoteLaunchShortcut.java	2009-07-27 17:12:49 UTC (rev 1895)
@@ -0,0 +1,35 @@
+/*******************************************************************************
+ * Copyright (c) 2009 Nokia Corporation
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ *    Fabrício S Epaminondas (UFCG) - initial API and implementation
+ *******************************************************************************/
+
+package org.maemo.esbox.internal.analysis.launch;
+
+import org.eclipse.debug.ui.ILaunchShortcut;
+import org.maemo.mica.python.launch.analysis.ltrace.AbstractPythonLtraceRemoteLaunchShortcut;
+
+/**
+ * @author Fabrício S Epaminondas (UFCG)
+ * 
+ */
+public class ESboxPythonLtraceRemoteLaunchShortcut extends
+		AbstractPythonLtraceRemoteLaunchShortcut implements ILaunchShortcut {
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see
+	 * org.maemo.mica.common.launch.IMicaLaunchShortcut#getLaunchConfigurationType
+	 * ()
+	 */
+	public String getLaunchConfigurationType() {
+		return IESboxAnalysisLaunchConstants.PYTHON_LTRACE_REMOTE_LAUNCH_TYPE;
+	}
+
+}

Modified: branches/work_Andre/org.maemo.esbox.launch.analysis/src/org/maemo/esbox/internal/analysis/launch/IESboxAnalysisLaunchConstants.java
===================================================================
--- branches/work_Andre/org.maemo.esbox.launch.analysis/src/org/maemo/esbox/internal/analysis/launch/IESboxAnalysisLaunchConstants.java	2009-07-24 20:19:01 UTC (rev 1894)
+++ branches/work_Andre/org.maemo.esbox.launch.analysis/src/org/maemo/esbox/internal/analysis/launch/IESboxAnalysisLaunchConstants.java	2009-07-27 17:12:49 UTC (rev 1895)
@@ -21,8 +21,10 @@
 	String CPP_OPROFILE_REMOTE_LAUNCH_TYPE = Activator.PLUGIN_ID + ".cpp.OProfileRemoteLaunchType";
 	String CPP_VALGRIND_LOCAL_LAUNCH_TYPE = Activator.PLUGIN_ID + ".cpp.ValgrindLocalLaunchType";
 	String CPP_LTRACE_LOCAL_LAUNCH_TYPE = Activator.PLUGIN_ID + ".cpp.LtraceLocalLaunchType";
+	String CPP_LTRACE_REMOTE_LAUNCH_TYPE = Activator.PLUGIN_ID + ".cpp.LtraceRemoteLaunchType";
 	
 	String PYTHON_OPROFILE_REMOTE_LAUNCH_TYPE = Activator.PLUGIN_ID + ".python.OProfileRemoteLaunchType";
 	String PYTHON_VALGRIND_LOCAL_LAUNCH_TYPE = Activator.PLUGIN_ID + ".python.ValgrindLocalLaunchType";
 	String PYTHON_LTRACE_LOCAL_LAUNCH_TYPE = Activator.PLUGIN_ID + ".python.LtraceLocalLaunchType";
+	String PYTHON_LTRACE_REMOTE_LAUNCH_TYPE = Activator.PLUGIN_ID + ".python.LtraceRemoteLaunchType";
 }



More information about the Esbox-commits mailing list