Commit 44b4978 1 parent ab131bd commit 44b4978 Copy full SHA for 44b4978
File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -110,12 +110,16 @@ def self.build_large_schema
110
110
end
111
111
112
112
obj_ts = 100 . times . map do |n |
113
+ input_obj_t = Class . new ( GraphQL ::Schema ::InputObject ) do
114
+ graphql_name ( "Input#{ n } " )
115
+ argument :arg , String
116
+ end
113
117
obj_t = Class . new ( GraphQL ::Schema ::Object ) do
114
118
graphql_name ( "Object#{ n } " )
115
119
implements ( *int_ts )
116
120
20 . times do |n2 |
117
121
field :"field#{ n2 } " , String do
118
- argument :arg , String
122
+ argument :input , input_obj_t
119
123
end
120
124
121
125
end
@@ -152,8 +156,9 @@ def self.profile_boot
152
156
end
153
157
StackProf ::Report . new ( result ) . print_text
154
158
159
+ retained_schema = nil
155
160
report = MemoryProfiler . report do
156
- build_large_schema
161
+ retained_schema = build_large_schema
157
162
end
158
163
159
164
report . pretty_print
You can’t perform that action at this time.
0 commit comments