Sha256: 8c9180479ab86203a54974a0b2ebe6a97407e3ff0a9ec159e7d3130f6fe7afad

Contents?: true

Size: 864 Bytes

Versions: 2

Compression:

Stored size: 864 Bytes

Contents

require "mkmf"

if RUBY_VERSION >= "1.9"
  if RUBY_RELEASE_DATE < "2005-03-17"
    STDERR.print("Ruby version is too old\n")
    exit(1)
  end
elsif RUBY_VERSION >= "1.8"
  if RUBY_RELEASE_DATE < "2005-03-22"
    STDERR.print("Ruby version is too old\n")
    exit(1)
  end
else
  STDERR.print("Ruby version is too old\n")
  exit(1)
end

have_header("sys/times.h")

# Stefan Kaes / Alexander Dymo GC patch
have_func("rb_os_allocated_objects")
have_func("rb_gc_allocated_size")
have_func("rb_gc_collections")
have_func("rb_gc_time")

# Lloyd Hilaiel's heap info patch
have_func("rb_heap_total_mem")
have_func("rb_gc_heap_info")

# Ruby 1.9 unexposed methods
have_func("rb_gc_malloc_allocations")
have_func("rb_gc_malloc_allocated_size")

def add_define(name)
  $defs.push("-D#{name}")
end

add_define 'RUBY_VM' if RUBY_VERSION >= '1.9'

create_makefile("ruby_prof")

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
ruby-prof-0.7.4 ext/extconf.rb
rdp-ruby-prof-0.7.4 ext/extconf.rb