Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add capability to profile the project and test #106

Open
mam0nth opened this issue Dec 12, 2013 · 11 comments
Open

Add capability to profile the project and test #106

mam0nth opened this issue Dec 12, 2013 · 11 comments

Comments

@mam0nth
Copy link
Contributor

mam0nth commented Dec 12, 2013

This is to request to add a plugin capability of profiling the project and per test file.

@kelemen
Copy link
Owner

kelemen commented Dec 12, 2013

Currently it is only possible to attach the profiler manually. This is of course, isn't enough if the process won't wait for manual attach (which is usually the case for tests).

Since, there is no standard way to provide jvm arguments from the command line for the started process, I'll probably need to add a task like "profileNetBeans" in the init script.

@mam0nth
Copy link
Contributor Author

mam0nth commented Dec 13, 2013

Please take a look on what maven plugin execute when you run "Profile Test" and there is no configuration in pom.

"JAVA_HOME=C:\\Program Files\\Java\\jdk1.7.0_45" cmd /c "\"\"C:\\Program Files\\NetBeans 7.4\\java\\maven\\bin\\mvn.bat\" -Dtest=com.mycompany.transactionhooksysjournal.AppTest -DforkMode=once -Dmaven.surefire.debug=${exec.args} -Dexec.args=\"-agentpath:\\\"C:/Program Files/NetBeans 7.4/profiler/lib/deployed/jdk16/windows-amd64/profilerinterface.dll\\\"=\\\"C:\\Program Files\\NetBeans 7.4\\profiler\\lib\\\",5140,10 -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=\\\"C:\\HOME\\Locale Settings\\Application Data\\NetBeans\\7.4-2\\cache\\mavencachedirs\\1105333645\\org-netbeans-modules-profiler\\\"  \" -DnetbeansProjectMappings= -Dmaven.ext.class.path=\"C:\\Program Files\\NetBeans 7.4\\java\\maven-nblib\\netbeans-eventspy.jar\" surefire:test\""

I think, there is not too much developers is waiting for this feature.

@mecp
Copy link

mecp commented Sep 29, 2014

I am waiting for this feature.

@marcomorain
Copy link

👍

@swpalmer
Copy link

I could also really use this.

@danapsimer
Copy link

+1

1 similar comment
@imartinbe
Copy link

+1

@wvreeven
Copy link

Any progress on this feature request? I am in need of profiling a gradle project and the only way for me to do it is to get rid of the gradle.build script and change the project into a standard NetBeans project. This requires linking all necessary jars by hand which obviously is a pain.

@Hillkorn
Copy link

I think a pull request is appreciated ;)

@kelemen
Copy link
Owner

kelemen commented Mar 16, 2017

If I remember correctly, I needed the pid of the started process, something I cannot access. However, I personally workaround the issue by manually connecting the profiler to the process. That is still possible, you don't need to create a new standard NB project. Though, if someone knows the NB API better than me, just point me there and I can add this feature.

@tcfurrer
Copy link

tcfurrer commented Jun 4, 2018

+1 (for convenience sake)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants