ruby-prof 0.7.4 → 0.7.5
Sign up to get free protection for your applications and to get access to all the features.
- data/README +2 -2
- data/Rakefile +26 -0
- data/ext/Makefile +180 -0
- data/ext/extconf.rb +2 -0
- data/ext/mkmf.log +264 -0
- data/ext/ruby186gc.patch +720 -0
- data/ext/ruby_prof.c +26 -16
- data/ext/version.h +2 -2
- data/lib/ruby-prof.rb +1 -0
- data/lib/ruby-prof/symbol_to_proc.rb +9 -0
- data/lib/test.rb +6 -0
- data/lib/test2.rb +4 -0
- data/test/aggregate_test.rb +4 -4
- data/test/basic_test.rb +25 -18
- data/test/current_failures_windows +20 -0
- data/test/recursive_test.rb +113 -89
- data/test/stack_test.rb +6 -6
- data/test/thread_test.rb +22 -19
- data/test/unique_call_path_test.rb +32 -13
- metadata +9 -2
data/README
CHANGED
@@ -137,9 +137,9 @@ This method is provided for backwards compatibility. Using
|
|
137
137
|
== Profiling Tests
|
138
138
|
|
139
139
|
Starting with the 0.6.1 release, ruby-prof supports profiling tests cases
|
140
|
-
written using Ruby's built-in
|
140
|
+
written using Ruby's built-in unit test framework (ie, test derived from
|
141
141
|
Test::Unit::TestCase). To enable profiling simply add the following line
|
142
|
-
of code to your test class:
|
142
|
+
of code to within your test class:
|
143
143
|
|
144
144
|
include RubyProf::Test
|
145
145
|
|
data/Rakefile
CHANGED
@@ -120,4 +120,30 @@ Rake::TestTask.new do |t|
|
|
120
120
|
t.test_files = Dir['test/test_suite.rb']
|
121
121
|
t.verbose = true
|
122
122
|
t.warning = true
|
123
|
+
end
|
124
|
+
|
125
|
+
require 'fileutils'
|
126
|
+
|
127
|
+
|
128
|
+
desc 'Build ruby_prof.so'
|
129
|
+
task :build do
|
130
|
+
Dir.chdir('ext') do
|
131
|
+
unless File.exist? 'Makefile'
|
132
|
+
system("ruby -d extconf.rb")
|
133
|
+
system("make clean")
|
134
|
+
end
|
135
|
+
system("make")
|
136
|
+
FileUtils.cp 'ruby_prof.so', '../lib'
|
137
|
+
end
|
138
|
+
end
|
139
|
+
|
140
|
+
desc 'clean ext'
|
141
|
+
task :clean do
|
142
|
+
FileUtils.rm 'lib/ruby_prof.so' if File.exist? 'lib/ruby_prof.so'
|
143
|
+
Dir.chdir('ext') do
|
144
|
+
if File.exist? 'Makefile'
|
145
|
+
system("make clean")
|
146
|
+
FileUtils.rm 'Makefile'
|
147
|
+
end
|
148
|
+
end
|
123
149
|
end
|
data/ext/Makefile
ADDED
@@ -0,0 +1,180 @@
|
|
1
|
+
|
2
|
+
SHELL = /bin/sh
|
3
|
+
|
4
|
+
#### Start of system configuration section. ####
|
5
|
+
|
6
|
+
srcdir = .
|
7
|
+
topdir = /E/installs/ruby191p376/include/ruby-1.9.1
|
8
|
+
hdrdir = /E/installs/ruby191p376/include/ruby-1.9.1
|
9
|
+
arch_hdrdir = E:/installs/ruby191p376/include/ruby-1.9.1/$(arch)
|
10
|
+
VPATH = $(srcdir):$(arch_hdrdir)/ruby:$(hdrdir)/ruby
|
11
|
+
|
12
|
+
DESTDIR = E:
|
13
|
+
prefix = $(DESTDIR)/installs/ruby191p376
|
14
|
+
exec_prefix = $(prefix)
|
15
|
+
vendorhdrdir = $(rubyhdrdir)/vendor_ruby
|
16
|
+
sitehdrdir = $(rubyhdrdir)/site_ruby
|
17
|
+
rubyhdrdir = $(includedir)/$(RUBY_INSTALL_NAME)-$(ruby_version)
|
18
|
+
vendordir = $(libdir)/$(RUBY_INSTALL_NAME)/vendor_ruby
|
19
|
+
sitedir = $(libdir)/$(RUBY_INSTALL_NAME)/site_ruby
|
20
|
+
mandir = $(datarootdir)/man
|
21
|
+
localedir = $(datarootdir)/locale
|
22
|
+
libdir = $(exec_prefix)/lib
|
23
|
+
psdir = $(docdir)
|
24
|
+
pdfdir = $(docdir)
|
25
|
+
dvidir = $(docdir)
|
26
|
+
htmldir = $(docdir)
|
27
|
+
infodir = $(datarootdir)/info
|
28
|
+
docdir = $(datarootdir)/doc/$(PACKAGE)
|
29
|
+
oldincludedir = $(DESTDIR)/usr/include
|
30
|
+
includedir = $(prefix)/include
|
31
|
+
localstatedir = $(prefix)/var
|
32
|
+
sharedstatedir = $(prefix)/com
|
33
|
+
sysconfdir = $(prefix)/etc
|
34
|
+
datadir = $(datarootdir)
|
35
|
+
datarootdir = $(prefix)/share
|
36
|
+
libexecdir = $(exec_prefix)/libexec
|
37
|
+
sbindir = $(exec_prefix)/sbin
|
38
|
+
bindir = $(exec_prefix)/bin
|
39
|
+
rubylibdir = $(libdir)/$(ruby_install_name)/$(ruby_version)
|
40
|
+
archdir = $(rubylibdir)/$(arch)
|
41
|
+
sitelibdir = $(sitedir)/$(ruby_version)
|
42
|
+
sitearchdir = $(sitelibdir)/$(sitearch)
|
43
|
+
vendorlibdir = $(vendordir)/$(ruby_version)
|
44
|
+
vendorarchdir = $(vendorlibdir)/$(sitearch)
|
45
|
+
|
46
|
+
CC = gcc
|
47
|
+
CXX = g++
|
48
|
+
LIBRUBY = lib$(RUBY_SO_NAME).dll.a
|
49
|
+
LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a
|
50
|
+
LIBRUBYARG_SHARED = -l$(RUBY_SO_NAME)
|
51
|
+
LIBRUBYARG_STATIC = -l$(RUBY_SO_NAME)-static
|
52
|
+
OUTFLAG = -o
|
53
|
+
COUTFLAG = -o
|
54
|
+
|
55
|
+
RUBY_EXTCONF_H =
|
56
|
+
cflags = $(optflags) $(debugflags) $(warnflags)
|
57
|
+
optflags = -O2
|
58
|
+
debugflags = -g
|
59
|
+
warnflags = -Wall -Wno-parentheses
|
60
|
+
CFLAGS = $(cflags)
|
61
|
+
INCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir)/ruby/backward -I$(hdrdir) -I$(srcdir)
|
62
|
+
DEFS =
|
63
|
+
CPPFLAGS = -DRUBY_VM $(DEFS) $(cppflags)
|
64
|
+
CXXFLAGS = $(CFLAGS) $(cxxflags)
|
65
|
+
ldflags = -L.
|
66
|
+
dldflags = -Wl,--enable-auto-image-base,--enable-auto-import
|
67
|
+
archflag =
|
68
|
+
DLDFLAGS = $(ldflags) $(dldflags) $(archflag)
|
69
|
+
LDSHARED = gcc -shared $(if $(filter-out -g -g0,$(debugflags)),,-s)
|
70
|
+
LDSHAREDXX = g++ -shared $(if $(filter-out -g -g0,$(debugflags)),,-s)
|
71
|
+
AR = ar
|
72
|
+
EXEEXT = .exe
|
73
|
+
|
74
|
+
RUBY_INSTALL_NAME = ruby
|
75
|
+
RUBY_SO_NAME = msvcrt-ruby191
|
76
|
+
arch = i386-mingw32
|
77
|
+
sitearch = i386-msvcrt
|
78
|
+
ruby_version = 1.9.1
|
79
|
+
ruby = E:/installs/ruby191p376/bin/ruby
|
80
|
+
RUBY = $(ruby)
|
81
|
+
RM = rm -f
|
82
|
+
RM_RF = $(RUBY) -run -e rm -- -rf
|
83
|
+
RMDIRS = $(RUBY) -run -e rmdir -- -p
|
84
|
+
MAKEDIRS = install -d
|
85
|
+
INSTALL = /bin/install -c
|
86
|
+
INSTALL_PROG = $(INSTALL) -m 0755
|
87
|
+
INSTALL_DATA = $(INSTALL) -m 644
|
88
|
+
COPY = cp
|
89
|
+
|
90
|
+
#### End of system configuration section. ####
|
91
|
+
|
92
|
+
preload =
|
93
|
+
|
94
|
+
libpath = . $(libdir)
|
95
|
+
LIBPATH = -L. -L$(libdir)
|
96
|
+
DEFFILE =
|
97
|
+
|
98
|
+
CLEANFILES = mkmf.log
|
99
|
+
DISTCLEANFILES =
|
100
|
+
DISTCLEANDIRS =
|
101
|
+
|
102
|
+
extout =
|
103
|
+
extout_prefix =
|
104
|
+
target_prefix =
|
105
|
+
LOCAL_LIBS =
|
106
|
+
LIBS = $(LIBRUBYARG_SHARED) -lshell32 -lws2_32
|
107
|
+
SRCS = ruby_prof.c
|
108
|
+
OBJS = ruby_prof.o
|
109
|
+
TARGET = ruby_prof
|
110
|
+
DLLIB = $(TARGET).so
|
111
|
+
EXTSTATIC =
|
112
|
+
STATIC_LIB =
|
113
|
+
|
114
|
+
BINDIR = $(bindir)
|
115
|
+
RUBYCOMMONDIR = $(sitedir)$(target_prefix)
|
116
|
+
RUBYLIBDIR = $(sitelibdir)$(target_prefix)
|
117
|
+
RUBYARCHDIR = $(sitearchdir)$(target_prefix)
|
118
|
+
HDRDIR = $(rubyhdrdir)/ruby$(target_prefix)
|
119
|
+
ARCHHDRDIR = $(rubyhdrdir)/$(arch)/ruby$(target_prefix)
|
120
|
+
|
121
|
+
TARGET_SO = $(DLLIB)
|
122
|
+
CLEANLIBS = $(TARGET).so
|
123
|
+
CLEANOBJS = *.o *.bak
|
124
|
+
|
125
|
+
all: $(DLLIB)
|
126
|
+
static: $(STATIC_LIB)
|
127
|
+
|
128
|
+
clean-rb-default::
|
129
|
+
clean-rb::
|
130
|
+
clean-so::
|
131
|
+
clean: clean-so clean-rb-default clean-rb
|
132
|
+
@-$(RM) $(CLEANLIBS) $(CLEANOBJS) $(CLEANFILES)
|
133
|
+
|
134
|
+
distclean-rb-default::
|
135
|
+
distclean-rb::
|
136
|
+
distclean-so::
|
137
|
+
distclean: clean distclean-so distclean-rb-default distclean-rb
|
138
|
+
@-$(RM) Makefile $(RUBY_EXTCONF_H) conftest.* mkmf.log
|
139
|
+
@-$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES)
|
140
|
+
@-$(RMDIRS) $(DISTCLEANDIRS)
|
141
|
+
|
142
|
+
realclean: distclean
|
143
|
+
install: install-so install-rb
|
144
|
+
|
145
|
+
install-so: $(RUBYARCHDIR)
|
146
|
+
install-so: $(RUBYARCHDIR)/$(DLLIB)
|
147
|
+
$(RUBYARCHDIR)/$(DLLIB): $(DLLIB)
|
148
|
+
$(INSTALL_PROG) $(DLLIB) $(RUBYARCHDIR)
|
149
|
+
install-rb: pre-install-rb install-rb-default
|
150
|
+
install-rb-default: pre-install-rb-default
|
151
|
+
pre-install-rb: Makefile
|
152
|
+
pre-install-rb-default: Makefile
|
153
|
+
$(RUBYARCHDIR):
|
154
|
+
$(MAKEDIRS) $@
|
155
|
+
|
156
|
+
site-install: site-install-so site-install-rb
|
157
|
+
site-install-so: install-so
|
158
|
+
site-install-rb: install-rb
|
159
|
+
|
160
|
+
.SUFFIXES: .c .m .cc .cxx .cpp .o
|
161
|
+
|
162
|
+
.cc.o:
|
163
|
+
$(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
|
164
|
+
|
165
|
+
.cxx.o:
|
166
|
+
$(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
|
167
|
+
|
168
|
+
.cpp.o:
|
169
|
+
$(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
|
170
|
+
|
171
|
+
.c.o:
|
172
|
+
$(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -c $<
|
173
|
+
|
174
|
+
$(DLLIB): $(OBJS) Makefile
|
175
|
+
@-$(RM) $(@)
|
176
|
+
$(LDSHARED) -o $@ $(OBJS) $(LIBPATH) $(DLDFLAGS) $(LOCAL_LIBS) $(LIBS)
|
177
|
+
|
178
|
+
|
179
|
+
|
180
|
+
$(OBJS): $(hdrdir)/ruby.h $(hdrdir)/ruby/defines.h $(arch_hdrdir)/ruby/config.h
|
data/ext/extconf.rb
CHANGED
data/ext/mkmf.log
ADDED
@@ -0,0 +1,264 @@
|
|
1
|
+
have_header: checking for sys/times.h... -------------------- no
|
2
|
+
|
3
|
+
"gcc -o conftest -IE:/installs/ruby191p376/include/ruby-1.9.1/i386-mingw32 -IE:/installs/ruby191p376/include/ruby-1.9.1/ruby/backward -IE:/installs/ruby191p376/include/ruby-1.9.1 -I. -O2 -g -Wall -Wno-parentheses conftest.c -L. -LE:/installs/ruby191p376/lib -L. -lmsvcrt-ruby191-static -lshell32 -lws2_32 "
|
4
|
+
checked program was:
|
5
|
+
/* begin */
|
6
|
+
1: #include "ruby.h"
|
7
|
+
2:
|
8
|
+
3: #include <winsock2.h>
|
9
|
+
4: #include <windows.h>
|
10
|
+
5: int main() {return 0;}
|
11
|
+
/* end */
|
12
|
+
|
13
|
+
"gcc -E -IE:/installs/ruby191p376/include/ruby-1.9.1/i386-mingw32 -IE:/installs/ruby191p376/include/ruby-1.9.1/ruby/backward -IE:/installs/ruby191p376/include/ruby-1.9.1 -I. -O2 -g -Wall -Wno-parentheses conftest.c -o conftest.i"
|
14
|
+
checked program was:
|
15
|
+
/* begin */
|
16
|
+
1: #include "ruby.h"
|
17
|
+
2:
|
18
|
+
3: #include <winsock2.h>
|
19
|
+
4: #include <windows.h>
|
20
|
+
5: #include <sys/times.h>
|
21
|
+
/* end */
|
22
|
+
|
23
|
+
--------------------
|
24
|
+
|
25
|
+
have_func: checking for rb_os_allocated_objects()... -------------------- no
|
26
|
+
|
27
|
+
"gcc -o conftest -IE:/installs/ruby191p376/include/ruby-1.9.1/i386-mingw32 -IE:/installs/ruby191p376/include/ruby-1.9.1/ruby/backward -IE:/installs/ruby191p376/include/ruby-1.9.1 -I. -O2 -g -Wall -Wno-parentheses conftest.c -L. -LE:/installs/ruby191p376/lib -L. -lmsvcrt-ruby191-static -lshell32 -lws2_32 "
|
28
|
+
checked program was:
|
29
|
+
/* begin */
|
30
|
+
1: #include "ruby.h"
|
31
|
+
2:
|
32
|
+
3: #include <winsock2.h>
|
33
|
+
4: #include <windows.h>
|
34
|
+
5:
|
35
|
+
6: /*top*/
|
36
|
+
7: int main() {return 0;}
|
37
|
+
8: int t() { void ((*volatile p)()); p = (void ((*)()))rb_os_allocated_objects; return 0; }
|
38
|
+
/* end */
|
39
|
+
|
40
|
+
"gcc -o conftest -IE:/installs/ruby191p376/include/ruby-1.9.1/i386-mingw32 -IE:/installs/ruby191p376/include/ruby-1.9.1/ruby/backward -IE:/installs/ruby191p376/include/ruby-1.9.1 -I. -O2 -g -Wall -Wno-parentheses conftest.c -L. -LE:/installs/ruby191p376/lib -L. -lmsvcrt-ruby191-static -lshell32 -lws2_32 "
|
41
|
+
checked program was:
|
42
|
+
/* begin */
|
43
|
+
1: #include "ruby.h"
|
44
|
+
2:
|
45
|
+
3: #include <winsock2.h>
|
46
|
+
4: #include <windows.h>
|
47
|
+
5:
|
48
|
+
6: /*top*/
|
49
|
+
7: int main() {return 0;}
|
50
|
+
8: int t() { rb_os_allocated_objects(); return 0; }
|
51
|
+
/* end */
|
52
|
+
|
53
|
+
--------------------
|
54
|
+
|
55
|
+
have_func: checking for rb_gc_allocated_size()... -------------------- no
|
56
|
+
|
57
|
+
"gcc -o conftest -IE:/installs/ruby191p376/include/ruby-1.9.1/i386-mingw32 -IE:/installs/ruby191p376/include/ruby-1.9.1/ruby/backward -IE:/installs/ruby191p376/include/ruby-1.9.1 -I. -O2 -g -Wall -Wno-parentheses conftest.c -L. -LE:/installs/ruby191p376/lib -L. -lmsvcrt-ruby191-static -lshell32 -lws2_32 "
|
58
|
+
checked program was:
|
59
|
+
/* begin */
|
60
|
+
1: #include "ruby.h"
|
61
|
+
2:
|
62
|
+
3: #include <winsock2.h>
|
63
|
+
4: #include <windows.h>
|
64
|
+
5:
|
65
|
+
6: /*top*/
|
66
|
+
7: int main() {return 0;}
|
67
|
+
8: int t() { void ((*volatile p)()); p = (void ((*)()))rb_gc_allocated_size; return 0; }
|
68
|
+
/* end */
|
69
|
+
|
70
|
+
"gcc -o conftest -IE:/installs/ruby191p376/include/ruby-1.9.1/i386-mingw32 -IE:/installs/ruby191p376/include/ruby-1.9.1/ruby/backward -IE:/installs/ruby191p376/include/ruby-1.9.1 -I. -O2 -g -Wall -Wno-parentheses conftest.c -L. -LE:/installs/ruby191p376/lib -L. -lmsvcrt-ruby191-static -lshell32 -lws2_32 "
|
71
|
+
checked program was:
|
72
|
+
/* begin */
|
73
|
+
1: #include "ruby.h"
|
74
|
+
2:
|
75
|
+
3: #include <winsock2.h>
|
76
|
+
4: #include <windows.h>
|
77
|
+
5:
|
78
|
+
6: /*top*/
|
79
|
+
7: int main() {return 0;}
|
80
|
+
8: int t() { rb_gc_allocated_size(); return 0; }
|
81
|
+
/* end */
|
82
|
+
|
83
|
+
--------------------
|
84
|
+
|
85
|
+
have_func: checking for rb_gc_collections()... -------------------- no
|
86
|
+
|
87
|
+
"gcc -o conftest -IE:/installs/ruby191p376/include/ruby-1.9.1/i386-mingw32 -IE:/installs/ruby191p376/include/ruby-1.9.1/ruby/backward -IE:/installs/ruby191p376/include/ruby-1.9.1 -I. -O2 -g -Wall -Wno-parentheses conftest.c -L. -LE:/installs/ruby191p376/lib -L. -lmsvcrt-ruby191-static -lshell32 -lws2_32 "
|
88
|
+
checked program was:
|
89
|
+
/* begin */
|
90
|
+
1: #include "ruby.h"
|
91
|
+
2:
|
92
|
+
3: #include <winsock2.h>
|
93
|
+
4: #include <windows.h>
|
94
|
+
5:
|
95
|
+
6: /*top*/
|
96
|
+
7: int main() {return 0;}
|
97
|
+
8: int t() { void ((*volatile p)()); p = (void ((*)()))rb_gc_collections; return 0; }
|
98
|
+
/* end */
|
99
|
+
|
100
|
+
"gcc -o conftest -IE:/installs/ruby191p376/include/ruby-1.9.1/i386-mingw32 -IE:/installs/ruby191p376/include/ruby-1.9.1/ruby/backward -IE:/installs/ruby191p376/include/ruby-1.9.1 -I. -O2 -g -Wall -Wno-parentheses conftest.c -L. -LE:/installs/ruby191p376/lib -L. -lmsvcrt-ruby191-static -lshell32 -lws2_32 "
|
101
|
+
checked program was:
|
102
|
+
/* begin */
|
103
|
+
1: #include "ruby.h"
|
104
|
+
2:
|
105
|
+
3: #include <winsock2.h>
|
106
|
+
4: #include <windows.h>
|
107
|
+
5:
|
108
|
+
6: /*top*/
|
109
|
+
7: int main() {return 0;}
|
110
|
+
8: int t() { rb_gc_collections(); return 0; }
|
111
|
+
/* end */
|
112
|
+
|
113
|
+
--------------------
|
114
|
+
|
115
|
+
have_func: checking for rb_gc_time()... -------------------- no
|
116
|
+
|
117
|
+
"gcc -o conftest -IE:/installs/ruby191p376/include/ruby-1.9.1/i386-mingw32 -IE:/installs/ruby191p376/include/ruby-1.9.1/ruby/backward -IE:/installs/ruby191p376/include/ruby-1.9.1 -I. -O2 -g -Wall -Wno-parentheses conftest.c -L. -LE:/installs/ruby191p376/lib -L. -lmsvcrt-ruby191-static -lshell32 -lws2_32 "
|
118
|
+
checked program was:
|
119
|
+
/* begin */
|
120
|
+
1: #include "ruby.h"
|
121
|
+
2:
|
122
|
+
3: #include <winsock2.h>
|
123
|
+
4: #include <windows.h>
|
124
|
+
5:
|
125
|
+
6: /*top*/
|
126
|
+
7: int main() {return 0;}
|
127
|
+
8: int t() { void ((*volatile p)()); p = (void ((*)()))rb_gc_time; return 0; }
|
128
|
+
/* end */
|
129
|
+
|
130
|
+
"gcc -o conftest -IE:/installs/ruby191p376/include/ruby-1.9.1/i386-mingw32 -IE:/installs/ruby191p376/include/ruby-1.9.1/ruby/backward -IE:/installs/ruby191p376/include/ruby-1.9.1 -I. -O2 -g -Wall -Wno-parentheses conftest.c -L. -LE:/installs/ruby191p376/lib -L. -lmsvcrt-ruby191-static -lshell32 -lws2_32 "
|
131
|
+
checked program was:
|
132
|
+
/* begin */
|
133
|
+
1: #include "ruby.h"
|
134
|
+
2:
|
135
|
+
3: #include <winsock2.h>
|
136
|
+
4: #include <windows.h>
|
137
|
+
5:
|
138
|
+
6: /*top*/
|
139
|
+
7: int main() {return 0;}
|
140
|
+
8: int t() { rb_gc_time(); return 0; }
|
141
|
+
/* end */
|
142
|
+
|
143
|
+
--------------------
|
144
|
+
|
145
|
+
have_func: checking for rb_heap_total_mem()... -------------------- no
|
146
|
+
|
147
|
+
"gcc -o conftest -IE:/installs/ruby191p376/include/ruby-1.9.1/i386-mingw32 -IE:/installs/ruby191p376/include/ruby-1.9.1/ruby/backward -IE:/installs/ruby191p376/include/ruby-1.9.1 -I. -O2 -g -Wall -Wno-parentheses conftest.c -L. -LE:/installs/ruby191p376/lib -L. -lmsvcrt-ruby191-static -lshell32 -lws2_32 "
|
148
|
+
checked program was:
|
149
|
+
/* begin */
|
150
|
+
1: #include "ruby.h"
|
151
|
+
2:
|
152
|
+
3: #include <winsock2.h>
|
153
|
+
4: #include <windows.h>
|
154
|
+
5:
|
155
|
+
6: /*top*/
|
156
|
+
7: int main() {return 0;}
|
157
|
+
8: int t() { void ((*volatile p)()); p = (void ((*)()))rb_heap_total_mem; return 0; }
|
158
|
+
/* end */
|
159
|
+
|
160
|
+
"gcc -o conftest -IE:/installs/ruby191p376/include/ruby-1.9.1/i386-mingw32 -IE:/installs/ruby191p376/include/ruby-1.9.1/ruby/backward -IE:/installs/ruby191p376/include/ruby-1.9.1 -I. -O2 -g -Wall -Wno-parentheses conftest.c -L. -LE:/installs/ruby191p376/lib -L. -lmsvcrt-ruby191-static -lshell32 -lws2_32 "
|
161
|
+
checked program was:
|
162
|
+
/* begin */
|
163
|
+
1: #include "ruby.h"
|
164
|
+
2:
|
165
|
+
3: #include <winsock2.h>
|
166
|
+
4: #include <windows.h>
|
167
|
+
5:
|
168
|
+
6: /*top*/
|
169
|
+
7: int main() {return 0;}
|
170
|
+
8: int t() { rb_heap_total_mem(); return 0; }
|
171
|
+
/* end */
|
172
|
+
|
173
|
+
--------------------
|
174
|
+
|
175
|
+
have_func: checking for rb_gc_heap_info()... -------------------- no
|
176
|
+
|
177
|
+
"gcc -o conftest -IE:/installs/ruby191p376/include/ruby-1.9.1/i386-mingw32 -IE:/installs/ruby191p376/include/ruby-1.9.1/ruby/backward -IE:/installs/ruby191p376/include/ruby-1.9.1 -I. -O2 -g -Wall -Wno-parentheses conftest.c -L. -LE:/installs/ruby191p376/lib -L. -lmsvcrt-ruby191-static -lshell32 -lws2_32 "
|
178
|
+
checked program was:
|
179
|
+
/* begin */
|
180
|
+
1: #include "ruby.h"
|
181
|
+
2:
|
182
|
+
3: #include <winsock2.h>
|
183
|
+
4: #include <windows.h>
|
184
|
+
5:
|
185
|
+
6: /*top*/
|
186
|
+
7: int main() {return 0;}
|
187
|
+
8: int t() { void ((*volatile p)()); p = (void ((*)()))rb_gc_heap_info; return 0; }
|
188
|
+
/* end */
|
189
|
+
|
190
|
+
"gcc -o conftest -IE:/installs/ruby191p376/include/ruby-1.9.1/i386-mingw32 -IE:/installs/ruby191p376/include/ruby-1.9.1/ruby/backward -IE:/installs/ruby191p376/include/ruby-1.9.1 -I. -O2 -g -Wall -Wno-parentheses conftest.c -L. -LE:/installs/ruby191p376/lib -L. -lmsvcrt-ruby191-static -lshell32 -lws2_32 "
|
191
|
+
checked program was:
|
192
|
+
/* begin */
|
193
|
+
1: #include "ruby.h"
|
194
|
+
2:
|
195
|
+
3: #include <winsock2.h>
|
196
|
+
4: #include <windows.h>
|
197
|
+
5:
|
198
|
+
6: /*top*/
|
199
|
+
7: int main() {return 0;}
|
200
|
+
8: int t() { rb_gc_heap_info(); return 0; }
|
201
|
+
/* end */
|
202
|
+
|
203
|
+
--------------------
|
204
|
+
|
205
|
+
have_func: checking for rb_gc_malloc_allocations()... -------------------- no
|
206
|
+
|
207
|
+
"gcc -o conftest -IE:/installs/ruby191p376/include/ruby-1.9.1/i386-mingw32 -IE:/installs/ruby191p376/include/ruby-1.9.1/ruby/backward -IE:/installs/ruby191p376/include/ruby-1.9.1 -I. -O2 -g -Wall -Wno-parentheses conftest.c -L. -LE:/installs/ruby191p376/lib -L. -lmsvcrt-ruby191-static -lshell32 -lws2_32 "
|
208
|
+
checked program was:
|
209
|
+
/* begin */
|
210
|
+
1: #include "ruby.h"
|
211
|
+
2:
|
212
|
+
3: #include <winsock2.h>
|
213
|
+
4: #include <windows.h>
|
214
|
+
5:
|
215
|
+
6: /*top*/
|
216
|
+
7: int main() {return 0;}
|
217
|
+
8: int t() { void ((*volatile p)()); p = (void ((*)()))rb_gc_malloc_allocations; return 0; }
|
218
|
+
/* end */
|
219
|
+
|
220
|
+
"gcc -o conftest -IE:/installs/ruby191p376/include/ruby-1.9.1/i386-mingw32 -IE:/installs/ruby191p376/include/ruby-1.9.1/ruby/backward -IE:/installs/ruby191p376/include/ruby-1.9.1 -I. -O2 -g -Wall -Wno-parentheses conftest.c -L. -LE:/installs/ruby191p376/lib -L. -lmsvcrt-ruby191-static -lshell32 -lws2_32 "
|
221
|
+
checked program was:
|
222
|
+
/* begin */
|
223
|
+
1: #include "ruby.h"
|
224
|
+
2:
|
225
|
+
3: #include <winsock2.h>
|
226
|
+
4: #include <windows.h>
|
227
|
+
5:
|
228
|
+
6: /*top*/
|
229
|
+
7: int main() {return 0;}
|
230
|
+
8: int t() { rb_gc_malloc_allocations(); return 0; }
|
231
|
+
/* end */
|
232
|
+
|
233
|
+
--------------------
|
234
|
+
|
235
|
+
have_func: checking for rb_gc_malloc_allocated_size()... -------------------- no
|
236
|
+
|
237
|
+
"gcc -o conftest -IE:/installs/ruby191p376/include/ruby-1.9.1/i386-mingw32 -IE:/installs/ruby191p376/include/ruby-1.9.1/ruby/backward -IE:/installs/ruby191p376/include/ruby-1.9.1 -I. -O2 -g -Wall -Wno-parentheses conftest.c -L. -LE:/installs/ruby191p376/lib -L. -lmsvcrt-ruby191-static -lshell32 -lws2_32 "
|
238
|
+
checked program was:
|
239
|
+
/* begin */
|
240
|
+
1: #include "ruby.h"
|
241
|
+
2:
|
242
|
+
3: #include <winsock2.h>
|
243
|
+
4: #include <windows.h>
|
244
|
+
5:
|
245
|
+
6: /*top*/
|
246
|
+
7: int main() {return 0;}
|
247
|
+
8: int t() { void ((*volatile p)()); p = (void ((*)()))rb_gc_malloc_allocated_size; return 0; }
|
248
|
+
/* end */
|
249
|
+
|
250
|
+
"gcc -o conftest -IE:/installs/ruby191p376/include/ruby-1.9.1/i386-mingw32 -IE:/installs/ruby191p376/include/ruby-1.9.1/ruby/backward -IE:/installs/ruby191p376/include/ruby-1.9.1 -I. -O2 -g -Wall -Wno-parentheses conftest.c -L. -LE:/installs/ruby191p376/lib -L. -lmsvcrt-ruby191-static -lshell32 -lws2_32 "
|
251
|
+
checked program was:
|
252
|
+
/* begin */
|
253
|
+
1: #include "ruby.h"
|
254
|
+
2:
|
255
|
+
3: #include <winsock2.h>
|
256
|
+
4: #include <windows.h>
|
257
|
+
5:
|
258
|
+
6: /*top*/
|
259
|
+
7: int main() {return 0;}
|
260
|
+
8: int t() { rb_gc_malloc_allocated_size(); return 0; }
|
261
|
+
/* end */
|
262
|
+
|
263
|
+
--------------------
|
264
|
+
|