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

[IntelliJ] Support for profiling #27

Open
BelgianDev opened this issue Mar 15, 2023 · 1 comment
Open

[IntelliJ] Support for profiling #27

BelgianDev opened this issue Mar 15, 2023 · 1 comment
Labels

Comments

@BelgianDev
Copy link

Hello, I want to profile my server but using run-tasks it doesn't have all the useful things as the live cpu/ram usage graphs. On the paper server they said to me that it's because the profiler is attached to the gradle task not to the server, I wanted to know if there was something I could do to show the graphs I never really used the profiler before so I'm maybe missing something, I still get a detailled report but only after stopping the server, and it doesnt allow to check for memory and cpu usage on the whole program.

image

@jpenilla
Copy link
Owner

The run tasks extend the standard JavaExec task, from my understanding support would need to be added on the Gradle/IntelliJ side.

You might be able to run the task independently from IntelliJ and manually attach the profiler to the spawned JVM as a workaround. I haven't tried this though so won't be able to help with it.

IntelliJ/Gradle are already smart enough to attach to the correct JVM for debugging JavaExecs, so it seems worth checking for an issue/reporting that.

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

No branches or pull requests

2 participants