[rvm-research] How to record objects' read/write times

王晨曦 <[email protected]>
Newsgroups gmane.comp.java.jikes.rvm.devel
Message-ID <CAECgty_FSXPS_1gUoMLaC+HA8S9mibd8ELqwLASWiey2uGvX9Q@mail.gmail.com>
Hi,every one

  I want to record objects' read and write times. As far as I know,
the Write Barrier is inserted before every Pointer update( object
assignment ), so I can modify the Write Barrier to record the
reference  times of the source object. But I know the reference times
is not equal to the write times of the   source object. Such as:

class a{
  ........
}

class b{

a test =new a();

double array_double[ ];
int   array_int[];

....
}


and the write barrier will only be inserted before the: (Is this right ?)

b.test=a ; //pointer update

but these assignment below will be ignored. But I think these
assignments will contribute the main read/write times.

for(i=0;i<Const;i++)
   array[i]=...
   array_int[i]===


I have no idea how to get the objects' read/write times information
without bring in too much performance cost.

Any response will be appreciated. Thank you vey much.


-- 
ChenXi Wang
ICT.CAS China

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.