FYI, last I checked (and much to my dismay) custom dtrace providers don't work on the MacOSX JVM. I would assume it's the same on FreeBSD, though I haven't tried that. On Jul 16, 2013 2:25 AM, "Chamila Wijayarathna" <cdwijayarat...@gmail.com> wrote:
> Hello all, > I am developing Dtrace Support on JRUby as my GSOC project. In my project > I am planning to add following DTrace probes to JRuby. > > · 1. Object-create -: fired when an object is about to allocated > > · 2. Array-create -: fired when an Array is about to be allocated > > · 3. Hash-create -: fired when an Hash is about to allocated > > · 4. String-create -: fired when String is about to allocated > > · 5. Symbol-create -: fired when symbol is about to be allocated > > · 6. Parse-begin -: fired just before parsing and compiling a > source file > > · 7. Parse-end –: fired just after parsing and compiling a source > file > > · 8. method-entry -: Fired just before a method is entered. > > · 9. method-return -: Fired just after a method has returned. > > · 10. Load-entry -: fired when calls to “load” are made > > · 11. Load-return -: fired when load returns. > > · 12. Raise –: fired when an exception is raised > > · 13. Java-method-entry -: fired just before a Java method is > entered > > · 14. Java-method-return -: fired just before Java method is > returned > > · 15. Require-entry -: fired on calls to rb_require_safe > > · 16. Require-return -: fired just before rb_require_safe returns > > · 17. Find-require-entry -: fired just before search_required is > called > > · 18. Find-require-return -: fired just after search_required > returns > > · 19. Gc-mark-begin -: fired at beginning of mark phase > > · 20. Gc-mark-end -: fired at the end of mark phase > > · 21. Gc-sweep-begin -: fired at the beginning of a sweep phase > > · 22. Gc-sweep-end -: fired at end of sweep phase. > > To add these probes I need to find places in JRuby codes to add these > probes, so they will execute their desired task. Since I am not much > familiar with JRuby code, if you can give me some help to find the places > to add these probes, it will be very helpful for getting this to work > quickly. > -Regards > > -- > *Chamila Dilshan Wijayarathna,* > SMIEEE, SMIESL, > Undergraduate, > Department of Computer Science and Engineering, > University of Moratuwa. >