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

Eliot Moss <[email protected]>
Newsgroups gmane.comp.java.jikes.rvm.devel
Message-ID <[email protected]>
On 5/11/2015 3:53 AM, 王晨曦 wrote:

>    I want to record objects' read and write times.

1) What do you mean by "times"?  Given the heavy weight of such instrumentation,
    wall clock time would not be very meaningful.  If you want counts, or the
    sequence of accesses to fields, then a modified version of ElephantTracks
    may be useful to you.

2) Collecting such detailed information is fraught with a number of difficulties.
    Benchmarks can time out, etc.

3) In a system like Jikes RVM, you have to be very careful not to instrument
    certain parts of the system, such as the garbage collector, and whatever
    part of the system gets invoked by your instrumentation (otherwise you get
    infinite recursion).

4) Some deeply integral parts of at least some systems do not tolerate well
    certain kinds of instrumentation.  See the ElephantTracks paper for some
    discussion of doing this from the bytecode level; doing it in the JikesRVM
    compiler may get around some of those issues, but not all.

5) Existing tools available in Eclipse, that use the JVM Tool Interface (jvmti),
    may do what you're looking for.

As we try to explain to people posing queries like this, tell us more about what
you're really trying to accomplish, and we can probably be more helpful.  There
may be better strategies to get at what it is you *really* want :-) ...

Eliot Moss

------------------------------------------------------------------------------
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
_______________________________________________
Jikesrvm-researchers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers
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.