1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/ext/objspace/objspace.h
tmm1 d0d6e2ecfa * ext/objspace/object_tracing.c: Add experimental methods to dump
objectspace as json: ObjectSpace.dump_all and ObjectSpace.dump(obj).
These methods are useful for debugging reference leaks and memory growth
in large ruby applications. [Bug #9026] [ruby-core:57893] [Fixes GH-423]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-11-08 17:06:55 +00:00

20 lines
406 B
C

#ifndef OBJSPACE_H
#define OBJSPACE_H 1
/* object_tracing.c */
struct allocation_info {
/* all of information don't need marking. */
int living;
VALUE flags;
VALUE klass;
/* allocation info */
const char *path;
unsigned long line;
const char *class_path;
VALUE mid;
size_t generation;
};
struct allocation_info *objspace_lookup_allocation_info(VALUE obj);
#endif