testng-eclipse icon indicating copy to clipboard operation
testng-eclipse copied to clipboard

VisualVM profiling for testng runs from Eclipse

Open juherr opened this issue 8 years ago • 6 comments

It looks it is already possible for JUnit but not for TestNG.

From https://stackoverflow.com/q/45052427/4234729

juherr avatar Jul 14 '17 08:07 juherr

not yet tried this, but according to the source code of "Eclipse Launcher for VisualVM", only junit is supported:

<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.2"?>
<plugin>
   <extension
         point="org.eclipse.debug.core.launchDelegates">
      <launchDelegate
            delegate="org.eclipse.visualvm.launcher.java.VisualVMJavaDelegate"
            delegateDescription="The VisualVM Launcher supports running and debugging local Java applications and initiating their monitoring in VisualVM"
            id="org.eclipse.visualvm.launch.java"
            modes="run,debug"
            name="VisualVM"
            sourceLocatorId="org.eclipse.visualvm.launch.core.java.sourceLocator"
            sourcePathComputerId="org.eclipse.visualvm.launch.core.java.sourcePathComputer"
            type="org.eclipse.jdt.launching.localJavaApplication">
      </launchDelegate>
      <launchDelegate
            delegate="org.eclipse.visualvm.launcher.java.VisualVMAppletDelegate"
            delegateDescription="The VisualVM Launcher supports running and debugging applets and initiating their monitoring in VisualVM"
            id="org.eclipse.visualvm.launch.applet"
            modes="run,debug"
            name="VisualVM"
            sourceLocatorId="org.eclipse.visualvm.launch.core.applet.sourceLocator"
            sourcePathComputerId="org.eclipse.visualvm.launch.core.applet.sourcePathComputer"
            type="org.eclipse.jdt.launching.javaApplet">
      </launchDelegate>
      <launchDelegate
            delegate="org.eclipse.visualvm.launcher.java.VisualVMJUnitDelegate"
            delegateDescription="The VisualVM Launcher supports running and debugging JUnit tests and initiating their monitoring in VisualVM"
            id="org.eclipse.visualvm.launch.junit"
            modes="run,debug"
            name="VisualVM"
            sourceLocatorId="org.eclipse.visualvm.launch.core.junit.sourceLocator"
            sourcePathComputerId="org.eclipse.visualvm.launch.core.junit.sourcePathComputer"
            type="org.eclipse.jdt.junit.launchconfig">
      </launchDelegate>
   </extension>

</plugin>

missedone avatar Jul 14 '17 10:07 missedone

Ok, thank for the information :)

juherr avatar Jul 14 '17 11:07 juherr

i'll keep this ticket open, if people can't get support from visualvm project, I will try to create PR later.

missedone avatar Jul 14 '17 12:07 missedone

@missedone what happened to this? Or did someone else implement it?

mpet avatar Jul 07 '22 06:07 mpet

@mpet , it's not implemented yet, a PR is appreciated

missedone avatar Jul 07 '22 06:07 missedone

besides, that project seems long time no update https://github.com/oracle/visualvm/tree/master/integrations/eclipse

missedone avatar Jul 07 '22 06:07 missedone