Displaying 13 results from an estimated 13 matches for "vtimestamp".
Did you mean:
timestamp
2006 Mar 01
3
vtimestamp skew, after restorectx()
Hello,
I''m using the below dtrace script to capture the flow and times of
kernel functions, from an ioctl() call. After an entry into
restorectx(), the trace of startimestamp - vtimestamp makes a dramatic
jump downwards. Here''s the snippet showing the jump...
6 -> di_checkmem 8 220176600
6 <- di_checkmem 7
220176700 100
6 -> di_mem_addr...
2009 May 15
13
How to calculate java method timestamp?
...500);
} catch (Exception e) {
}
//////////////////// real CPU intensive operation ///////////////////////////
for (int i = 1; i < stop; i++) {
stop = stop * stop * i;
};
return stop;
}
For above method, I can get time-stamp by using "vtimestamp" and method-entry/return probes.
But I also want to how much time it is spending as idle ( in above case 1500 ms) and how much in real CPU intensive operation.
Is there any way to do this?
Help appreciated.
Thanks,
Ajit
--
This message posted from opensolaris.org
2006 Nov 08
1
timestamp vs vtimestamp
Hello all,
I''m looking for answers about a question that i did post on ZFS/UFS discuss... without success, now i''m here to see your points. Any tips?
As you know, i''m making some "screencasts" about a few solaris features. That screencasts is one point of many tests that i''m making with solaris 10. Now, with some tests with dtrace, i have saw a
2008 Sep 09
1
DTrace and shared memory id
..."size", "flags",
"CPU", "Wall
Time");
}
fbt::shmget:entry
{
self->key = arg0;
self->size = arg1;
self->flags = arg2;
self->shmgettimestamp = timestamp;
self->shmgetvtimestamp = vtimestamp;
}
fbt::shmget:return
/ self->shmgettimestamp /
{
/* operation key shmid size flags cpu wall */
printf("%-10s %-10x %-10x %-10d %-10d %-10d %-10d\n", probefunc,
self->key, arg1,...
2005 Oct 18
1
Error while using sdt interrupt-complete.
...utput after the errors, and I''m trying to
understand if the errors are affecting my output(and the cause, of course)
Thanks for any pointers,
-ps
intr.d from the SDT provider chapter in the guide.
-------------------------------------------------
interrupt-start
{
self->ts = vtimestamp;
}
interrupt-complete
/self->ts/
{
this->devi = (struct dev_info *)arg0;
@[stringof(`devnamesp[this->devi->devi_major].dn_name),
this->devi->devi_instance] = quantize(vtimestamp - self->ts);
}
output on running:
------------------
bash-3.00# dtrac...
2006 Mar 16
0
Re: Can dtrace agent of JDK be used in IBM Websphere?
...n console
very slow, sometimes occured timeout error.
When use ./java_method.d to trace the process of Websphere within the
period of startup time. It occured below error:
Content of java_method.d:
#!/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)]);
}
Error message:
..................
dtrace: error on enabled probe ID 1 (ID 5644:
dvm2514:libdvmpi.so:cbMethodEntry:
method-entry): invalid address (0x0) in acti...
2009 Sep 09
10
dtrace overhead and proper measuring technique
...ove in
the context of 0.9s or 17.9s?
Thanks, Joel
---
[1] sigcont.d
BEGIN
{
system("kill -CONT %d &\n", $target);
}
[2] menu-construct.d
BEGIN
{
self->ts = 0;
self->vts = 0;
}
pid$target::nsMenuX??MenuConstruct*:entry
{
self->ts = timestamp;
self->vts = vtimestamp;
}
pid$target::nsMenuX??MenuConstruct*:return
/self->ts/
{
this->ts = timestamp - self->ts;
this->vts = vtimestamp - self->vts;
@tsint = sum(this->ts / 1000000);
@tsfrac = sum(this->ts % 1000000);
@vtsint = sum(this->vts / 1000000);
@vtsfrac = sum(this->vts %...
2006 Feb 17
3
CPU time stats
hi,
I am trying to find out the avg cpu time spent in each of my user
methods (exclusive of other methods invoked by a method).
Hence the following snippet failed miserably:
-----------------------
pid$target:a.out::entry
{ time[probefunc] = timestamp;}
pid$target:a.out::return
{ @spent[probefunc] = avg(timestamp - time[probefunc]);}
END
{ printa(@spent);}
2009 Sep 14
1
return from memset on mac osx
Does dtrace have a problem catching the return from memset on Mac OSX?
The script below catches the entry just fine but the return clause is
never entered.
Thanks, Joel
---
pid$target::memset:entry
/arg1 == 0/
{
self->size = arg2;
self->ts = timestamp;
self->vts = vtimestamp;
}
pid$target::memset:return
/self->size/
{
@ts = sum(timestamp - self->ts);
@vts = sum(vtimestamp - self->vts);
@size = sum(self->size);
@count = count();
self->ts = 0;
self->vts = 0;
self->size = 0;
}
END
{
printa("elapsed: %@u\n", @ts);...
2009 Sep 09
4
usdt probes vs pid$target
...th static
probes but the probes don''t show up unless Firefox is running and then
only as mozillaNNNNN, i.e. mozilla$target.
Thanks, Joel
---
BEGIN
{
self->ts = 0;
self->vts = 0;
}
mozilla$target:::process-xul-reflow-entry
{
self->ts = timestamp;
self->vts = vtimestamp;
self->roots = arg0;
}
mozilla$target:::process-xul-reflow-return
/self->ts/
{
this->ts = timestamp - self->ts;
this->vts = vtimestamp - self->vts;
printf("\n");
printf("# roots: %u\n", self->roots);
printf("elapsed: %u.%06ums\n"...
2005 Nov 15
6
Oracle 9 process on Sol 10 container, doing a pollsys, using high CPU
We''re running a Solaris 10 container, with an Oracle 9.2.0.4 database - every 5-10 min, an Oracle process shoots up (using 20% + CPU) and then goes down in CPU %, doing a [i]pollsys [/i](see it via dtruss). I tried using some of the trace scripts in the Dtracetoolkit to see what the process is doing, but without any luck - also tried with the following, but dtrace process goes up to 30%
2008 Nov 23
4
Visualizing a call graph
Hello all,
I have been taking basic steps with DTrace and subscribed today to
this list. I have written a simple DTrace script to trace all the
function entry/exit from a given function:
#pragma D option flowindent
pid$1::*mysql_select*:entry
{
self -> start = vtimestamp ;
}
pid$1::*mysql_select*:return
/self -> start/
{
self -> start =0 ;
}
pid$1:::entry,
pid$1:::return
/self->start/
{
trace (vtimestamp - self->start);
}
sample output:
0 -> __1cMmysql_select6FpnDTHD_pppnEItem_pnKTABLE_LIST_IrnEList4n0B___p2IpnIst_or
der_9D39DXpnNselect_resu...
2007 Feb 13
2
zpool export consumes whole CPU and takes more than 30 minutes to complete
...fs`spa_sync+0x1b0
zfs`txg_sync_thread+0x134
unix`thread_start+0x4
2608
unix`cpu_halt+0xc8
unix`idle+0x128
unix`thread_start+0x4
287026
bash-3.00#
bash-3.00# dtrace -n fbt:::entry''{self->vt=vtimestamp;}'' -n fbt:::return''/self->vt/{@[probemod,probefunc]=sum(vtimestamp-self->vt);}'' -n tick-10s''{trunc(@,20);printa(@);exit(0);}''
dtrace: description ''fbt:::entry'' matched 24134 probes
dtrace: description ''fbt:::return'...