Possible to Profile OpenGL When Using JOGL?

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Possible to Profile OpenGL When Using JOGL?

farrellf
Is it possible to use any of the OpenGL profilers with JOGL/Java programs? I've looked into apitrace, gDebugger and CodeXL. None of them work for me. I wonder if maybe the JVM/JNI stuff is getting in the way and causing problems?

I can provide more details if needed, but just wonder if profiling is even possible with JOGL. I want to profile my code to help with benchmarking / finding bottlenecks / confirming improvements.

If it makes any difference: I'm using JOGL 2.3.2, with Java 8, in Windows 10, with a GTX1080. I'm using Launch4j to wrap my JAR file in an EXE.

Thanks,
-Farrell
Reply | Threaded
Open this post in threaded view
|

Re: Possible to Profile OpenGL When Using JOGL?

gouessej
Administrator
Hi

It's a bit strange. You should contact some JOGL users on the IRC chat as some of them reported to succeed in using profiling tools with JOGL.

By the way, I use JNDT to generate a Windows installer (.exe), it builds installers and packages for several platforms and it's easier to use to make Windows installers under GNU Linux as the necessary third party libraries (typically the NSIS wrapper) are provided by numerous distros whereas MinGW binutils required for Launch4J are available only for a few distros (Debian, maybe Ubuntu, Arch, ...).
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Possible to Profile OpenGL When Using JOGL?

elect
In reply to this post by farrellf
Forget gDebugger, it's old

CodeXL and VS Nsight work

I launched it passing "java.exe -jar myjar.jar"

What problems do you have?
Reply | Threaded
Open this post in threaded view
|

Re: Possible to Profile OpenGL When Using JOGL?

gouessej
Administrator
You can use NVIDIA Nsight in Eclipse too, there is an "Eclipse edition".
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Possible to Profile OpenGL When Using JOGL?

farrellf
In reply to this post by elect
elect: Maybe I'm doing something wrong. I just tried with CodeXL and Apitrace, both fail. Here's a quick video showing what I try and what happens:

https://www.youtube.com/watch?v=7ipWJm0WdaI

gouessej: Is the IRC channel #jogamp on Freenode? I've asked questions in there a couple times and the channel seems to always be dead. I've stayed in there overnight a few times and all I see are the occasional user join/leave messages. I'll look into Nsight and JNDT, thanks.

-Farrell
Reply | Threaded
Open this post in threaded view
|

Re: Possible to Profile OpenGL When Using JOGL?

gouessej
Administrator
Yes it's on Freenode. You can look at the logs, some people can answer later.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Possible to Profile OpenGL When Using JOGL?

elect
In reply to this post by farrellf
I have similar settings




Try to filld the "Source Files Directories"

Also, which CodeXL do you have?

Do you have Visual Studio? (The community version is free)