Re: Profiler root methods explanation

  • From: Herkules <herkule9s@...>
  • To: "users@..." <users@...>
  • Subject: Re: Profiler root methods explanation
  • Date: Fri, 27 Dec 2013 08:05:16 -0800 (PST)
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=KjDhWK9tC2bh59XKJX3NnoPAIYlR8u+2HH3d4Z9zeqK+xS/FDZFN04dwGI9nPh/SMwnZkbRPgB9CkmBZK8cKHCZiGpguphBNDXfYluJBSFLZZL7BINwpXwqhoAVZGFz7o74H0wptSZWP7xvcNbtlDiCMQKdGfx/Qx+QYwSMCROA=;



Hi Tomas,

you say: "Profile only classes" should include class in "start profiling from 
classes". I tried with:

start profiling from classes: cz.someone.profiler.inter.Inter
profile new runnables: not ticked
profile only classes: cz.baresovi.profiler.target.,cz.baresovi.profiler.inter.


It still says 0 methods instrumented.  I don't want to use your solution as 
in real case this will result in instrumenting far too many classes.

Jan


________________________________
 From: Tomas Hurka <tomas.hurka@...>
To: Herkules <herkule9s@...> 
Cc: "users@..." <users@...> 
Sent: Friday, December 20, 2013 3:04 PM
Subject: Re: Profiler root methods explanation
 

Hi Honzo,

On 18 Dec 2013, at 16:40, Herkules wrote:
> 
> I am familiar with what root methods are, at least I hope :-) However they 
> doesn't work as expected. Assume the following classes, each with one 
> static public methods:
> 
> cz.someone.profiler.root.Root - contains main method and calls Inter class
> cz.someone.profiler.inter.Inter - calls Target class method in a cycle
> cz.someone.profiler.target.Target - single static method that sleeps some 
> time
> 
> My profiler settings:
> 
> start profiling from classes: cz.someone.profiler.inter.Inter
> profile new runnables: not ticked
> profile only classes: cz.someone.profiler.target.Target
> 
> When I stop (on breakpoint) my application in main method and hit CPU 
> profiling, VisualVM says that no methods were instrumented and when the 
> program continues with call to Inter method, no profiling results are 
> shown. I assume that profiler is able to grab and instrument new loaded 
> classes, but this doesn't work.
"Profile only classes" should include class in "start profiling from 
classes". For your case I would use:

start profiling from classes: cz.someone.profiler.inter.Inter
profile new runnables: not ticked
profile only classes: cz.someone.profiler.*

Bye,
--
Tomas Hurka   <mailto:tomas.hurka@...>
NetBeans Profiler http://profiler.netbeans.org

VisualVM http://visualvm.java.net
Software Developer
Oracle, Praha Czech Republic

Profiler root methods explanation

Herkules 12/18/2013

Re: Profiler root methods explanation

Tomas Hurka 12/20/2013

Re: Profiler root methods explanation

Herkules 12/27/2013
Terms of Use; Privacy Policy; Copyright ©2013-2015 (revision 20150626.29986a4)
 
 
Close
loading
Please Confirm
Close