You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@netbeans.apache.org by Bob T <bo...@gmail.com> on 2021/12/10 13:24:08 UTC
Problems profiling a Gradle application
Hello,
I have a Gradle project that I want to run the Profiler for but I can't get
it to work. All options aside from "Attach to External Process" and "Insert
Profiling Point..." are greyed out in the Profile menu. I can't choose
"Profile Main Project".
I tried to run my application and then "Attach to External Process" from
the Profile menu. I can choose the application process from the "Setup
Attach To Process..." popup but nothing appears to happen and the profiler
pane is empty. If I try and attach again I get an exception thrown:
"Exception in thread "Attach Listener"
java.lang.reflect.InvocationTargetException".
I also tried a new empty hello world Gradle application with the same
result.
I'm running:
Product Version: Apache NetBeans IDE 12.6
Java: 11.0.9.1; OpenJDK 64-Bit Server VM 11.0.9.1+1-LTS (Arm64 Azul Zulu)
Runtime: OpenJDK Runtime Environment 11.0.9.1+1-LTS (Arm64 Azul Zulu)
System: Mac OS X version 11.6 running on aarch64; UTF-8; en_GB (nb)
Does anyone know how to get this to work?
Thanks
Re: Problems profiling a Gradle application
Posted by Scott Palmer <sw...@gmail.com>.
What support is needed for the “Attach to External Process” profiling to work?
Scott
> On Dec 10, 2021, at 11:57 PM, Laszlo Kishalmi <la...@gmail.com> wrote:
>
>
> That's true.
>
> There is no profiler integration support for Gradle projects at the moment.
>
>> On 12/10/21 05:24, Bob T wrote:
>> Hello,
>>
>> I have a Gradle project that I want to run the Profiler for but I can't get it to work. All options aside from "Attach to External Process" and "Insert Profiling Point..." are greyed out in the Profile menu. I can't choose "Profile Main Project".
>>
>> I tried to run my application and then "Attach to External Process" from the Profile menu. I can choose the application process from the "Setup Attach To Process..." popup but nothing appears to happen and the profiler pane is empty. If I try and attach again I get an exception thrown: "Exception in thread "Attach Listener" java.lang.reflect.InvocationTargetException".
>>
>> I also tried a new empty hello world Gradle application with the same result.
>>
>> I'm running:
>> Product Version: Apache NetBeans IDE 12.6
>> Java: 11.0.9.1; OpenJDK 64-Bit Server VM 11.0.9.1+1-LTS (Arm64 Azul Zulu)
>> Runtime: OpenJDK Runtime Environment 11.0.9.1+1-LTS (Arm64 Azul Zulu)
>> System: Mac OS X version 11.6 running on aarch64; UTF-8; en_GB (nb)
>>
>>
>> Does anyone know how to get this to work?
>>
>> Thanks
>>
Re: Problems profiling a Gradle application
Posted by Laszlo Kishalmi <la...@gmail.com>.
That's true.
There is no profiler integration support for Gradle projects at the moment.
On 12/10/21 05:24, Bob T wrote:
> Hello,
>
> I have a Gradle project that I want to run the Profiler for but I
> can't get it to work. All options aside from "Attach to External
> Process" and "Insert Profiling Point..." are greyed out in the Profile
> menu. I can't choose "Profile Main Project".
>
> I tried to run my application and then "Attach to External Process"
> from the Profile menu. I can choose the application process from the
> "Setup Attach To Process..." popup but nothing appears to happen and
> the profiler pane is empty. If I try and attach again I get an
> exception thrown: "Exception in thread "Attach Listener"
> java.lang.reflect.InvocationTargetException".
>
> I also tried a new empty hello world Gradle application with the same
> result.
>
> I'm running:
> Product Version: Apache NetBeans IDE 12.6
> Java: 11.0.9.1; OpenJDK 64-Bit Server VM 11.0.9.1+1-LTS (Arm64 Azul Zulu)
> Runtime: OpenJDK Runtime Environment 11.0.9.1+1-LTS (Arm64 Azul Zulu)
> System: Mac OS X version 11.6 running on aarch64; UTF-8; en_GB (nb)
>
>
> Does anyone know how to get this to work?
>
> Thanks
>