Hi Adam,
 
I tried the -Z option
 
$> sudo dtrace -Z ./<script>.d
 
Where <script>.d is 
 
_______________________________________________
#!/usr/sbin/dtrace -s
dvm$target:::method-entry
{
self->ts[copyinstr(arg0),copyinstr(arg1)] = vtimestamp;
}
dvm$target:::method-return
{
@ts[copyinstr(arg0),copyinstr(arg1)] = sum(vtimestamp -
self->ts[copyinstr(arg0),copyinstr(arg1)]);
printf("className %s method name %s", copyinstr(arg0), copyinstr(arg1));
}
_______________________________________________

The command never returns!
 
I'm no good at D language. I do know C but I need to brush up on my pointers 
concepts. The script above was sent to me by another user on the forum and I do 
not know if it is correct. Can you please tell me what this program is doing?
 
I actully need to set up a working POC. I need to get the number of times an 
API is called and the total execution time of that API. I need to do this for 
boht a stand alone Java application as well as a J2EE app running on WebLogic 
8.1 (JDK 1.4.2).
 
Thanks!

--- On Tue, 8/5/08, Adam Leventhal <[EMAIL PROTECTED]> wrote:

From: Adam Leventhal <[EMAIL PROTECTED]>
Subject: Re: [dtrace-discuss] How to install DTrace/JVMPI for WebLogic
To: "Kelly O'Hair" <[EMAIL PROTECTED]>
Cc: [email protected]
Date: Tuesday, August 5, 2008, 10:17 AM

Alteratively, you specify the -Z option to dtrace(1M) which will cause it to
ignore enablings that match no probes. Those probes will later be enabled
once libjvm.so is loaded.

Adam

On Tue, Aug 05, 2008 at 10:03:27AM -0700, Kelly O'Hair wrote:
> Since libjvm.so is dlopen'd, and the agent is then dlopen'd by
libjvm.so, you need to attach to a PID.
> 
> -kto
> 
> 
> --
> This message posted from opensolaris.org
> _______________________________________________
> dtrace-discuss mailing list
> [email protected]

-- 
Adam Leventhal, Fishworks                     http://blogs.sun.com/ahl
_______________________________________________
dtrace-discuss mailing list
[email protected]



      
_______________________________________________
dtrace-discuss mailing list
[email protected]

Reply via email to