@@ -70,7 +70,7 @@ static PHP_METHOD(HeapStatistics, __construct) {
70
70
zend_update_property_bool (this_ce, getThis (), ZEND_STRL (" does_zap_garbage" ), does_zap_garbage);
71
71
}
72
72
73
- static PHP_METHOD (HeapStatistics, total_heap_size ) {
73
+ static PHP_METHOD (HeapStatistics, getTotalHeapSize ) {
74
74
zval rv;
75
75
76
76
if (zend_parse_parameters_none () == FAILURE) {
@@ -80,7 +80,7 @@ static PHP_METHOD(HeapStatistics, total_heap_size) {
80
80
RETVAL_ZVAL (zend_read_property (this_ce, getThis (), ZEND_STRL (" total_heap_size" ), 0 , &rv), 1 , 0 );
81
81
}
82
82
83
- static PHP_METHOD (HeapStatistics, total_heap_size_executable ) {
83
+ static PHP_METHOD (HeapStatistics, getTotalHeapSizeExecutable ) {
84
84
zval rv;
85
85
86
86
if (zend_parse_parameters_none () == FAILURE) {
@@ -90,7 +90,7 @@ static PHP_METHOD(HeapStatistics, total_heap_size_executable) {
90
90
RETVAL_ZVAL (zend_read_property (this_ce, getThis (), ZEND_STRL (" total_heap_size_executable" ), 0 , &rv), 1 , 0 );
91
91
}
92
92
93
- static PHP_METHOD (HeapStatistics, total_physical_size ) {
93
+ static PHP_METHOD (HeapStatistics, getTotalPhysicalSize ) {
94
94
zval rv;
95
95
96
96
if (zend_parse_parameters_none () == FAILURE) {
@@ -100,7 +100,7 @@ static PHP_METHOD(HeapStatistics, total_physical_size) {
100
100
RETVAL_ZVAL (zend_read_property (this_ce, getThis (), ZEND_STRL (" total_physical_size" ), 0 , &rv), 1 , 0 );
101
101
}
102
102
103
- static PHP_METHOD (HeapStatistics, total_available_size ) {
103
+ static PHP_METHOD (HeapStatistics, getTotalAvailableSize ) {
104
104
zval rv;
105
105
106
106
if (zend_parse_parameters_none () == FAILURE) {
@@ -110,7 +110,7 @@ static PHP_METHOD(HeapStatistics, total_available_size) {
110
110
RETVAL_ZVAL (zend_read_property (this_ce, getThis (), ZEND_STRL (" total_available_size" ), 0 , &rv), 1 , 0 );
111
111
}
112
112
113
- static PHP_METHOD (HeapStatistics, used_heap_size ) {
113
+ static PHP_METHOD (HeapStatistics, getUsedHeapSize ) {
114
114
zval rv;
115
115
116
116
if (zend_parse_parameters_none () == FAILURE) {
@@ -120,7 +120,7 @@ static PHP_METHOD(HeapStatistics, used_heap_size) {
120
120
RETVAL_ZVAL (zend_read_property (this_ce, getThis (), ZEND_STRL (" used_heap_size" ), 0 , &rv), 1 , 0 );
121
121
}
122
122
123
- static PHP_METHOD (HeapStatistics, heap_size_limit ) {
123
+ static PHP_METHOD (HeapStatistics, getHeapSizeLimit ) {
124
124
zval rv;
125
125
126
126
if (zend_parse_parameters_none () == FAILURE) {
@@ -130,7 +130,7 @@ static PHP_METHOD(HeapStatistics, heap_size_limit) {
130
130
RETVAL_ZVAL (zend_read_property (this_ce, getThis (), ZEND_STRL (" heap_size_limit" ), 0 , &rv), 1 , 0 );
131
131
}
132
132
133
- static PHP_METHOD (HeapStatistics, malloced_memory ) {
133
+ static PHP_METHOD (HeapStatistics, getMallocedMemory ) {
134
134
zval rv;
135
135
136
136
if (zend_parse_parameters_none () == FAILURE) {
@@ -140,7 +140,7 @@ static PHP_METHOD(HeapStatistics, malloced_memory) {
140
140
RETVAL_ZVAL (zend_read_property (this_ce, getThis (), ZEND_STRL (" malloced_memory" ), 0 , &rv), 1 , 0 );
141
141
}
142
142
143
- static PHP_METHOD (HeapStatistics, peak_malloced_memory ) {
143
+ static PHP_METHOD (HeapStatistics, getPeakMallocedMemory ) {
144
144
zval rv;
145
145
146
146
if (zend_parse_parameters_none () == FAILURE) {
@@ -150,7 +150,7 @@ static PHP_METHOD(HeapStatistics, peak_malloced_memory) {
150
150
RETVAL_ZVAL (zend_read_property (this_ce, getThis (), ZEND_STRL (" peak_malloced_memory" ), 0 , &rv), 1 , 0 );
151
151
}
152
152
153
- static PHP_METHOD (HeapStatistics, does_zap_garbage ) {
153
+ static PHP_METHOD (HeapStatistics, doesZapGarbage ) {
154
154
zval rv;
155
155
156
156
if (zend_parse_parameters_none () == FAILURE) {
@@ -175,46 +175,46 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo___construct, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE,
175
175
ZEND_ARG_TYPE_INFO(0 , does_zap_garbage, _IS_BOOL, 0 )
176
176
ZEND_END_ARG_INFO()
177
177
178
- PHP_V8_ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_total_heap_size , ZEND_RETURN_VALUE, 0 , IS_DOUBLE, 0 )
178
+ PHP_V8_ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_getTotalHeapSize , ZEND_RETURN_VALUE, 0 , IS_DOUBLE, 0 )
179
179
ZEND_END_ARG_INFO()
180
180
181
- PHP_V8_ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_total_heap_size_executable , ZEND_RETURN_VALUE, 0 , IS_DOUBLE, 0 )
181
+ PHP_V8_ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_getTotalHeapSizeExecutable , ZEND_RETURN_VALUE, 0 , IS_DOUBLE, 0 )
182
182
ZEND_END_ARG_INFO()
183
183
184
- PHP_V8_ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_total_physical_size , ZEND_RETURN_VALUE, 0 , IS_DOUBLE, 0 )
184
+ PHP_V8_ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_getTotalPhysicalSize , ZEND_RETURN_VALUE, 0 , IS_DOUBLE, 0 )
185
185
ZEND_END_ARG_INFO()
186
186
187
- PHP_V8_ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_total_available_size , ZEND_RETURN_VALUE, 0 , IS_DOUBLE, 0 )
187
+ PHP_V8_ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_getTotalAvailableSize , ZEND_RETURN_VALUE, 0 , IS_DOUBLE, 0 )
188
188
ZEND_END_ARG_INFO()
189
189
190
- PHP_V8_ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_used_heap_size , ZEND_RETURN_VALUE, 0 , IS_DOUBLE, 0 )
190
+ PHP_V8_ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_getUsedHeapSize , ZEND_RETURN_VALUE, 0 , IS_DOUBLE, 0 )
191
191
ZEND_END_ARG_INFO()
192
192
193
- PHP_V8_ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_heap_size_limit , ZEND_RETURN_VALUE, 0 , IS_DOUBLE, 0 )
193
+ PHP_V8_ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_getHeapSizeLimit , ZEND_RETURN_VALUE, 0 , IS_DOUBLE, 0 )
194
194
ZEND_END_ARG_INFO()
195
195
196
- PHP_V8_ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_malloced_memory , ZEND_RETURN_VALUE, 0 , IS_DOUBLE, 0 )
196
+ PHP_V8_ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_getMallocedMemory , ZEND_RETURN_VALUE, 0 , IS_DOUBLE, 0 )
197
197
ZEND_END_ARG_INFO()
198
198
199
- PHP_V8_ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_peak_malloced_memory , ZEND_RETURN_VALUE, 0 , IS_DOUBLE, 0 )
199
+ PHP_V8_ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_getPeakMallocedMemory , ZEND_RETURN_VALUE, 0 , IS_DOUBLE, 0 )
200
200
ZEND_END_ARG_INFO()
201
201
202
- PHP_V8_ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_does_zap_garbage , ZEND_RETURN_VALUE, 0 , _IS_BOOL, 0 )
202
+ PHP_V8_ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_doesZapGarbage , ZEND_RETURN_VALUE, 0 , _IS_BOOL, 0 )
203
203
ZEND_END_ARG_INFO()
204
204
205
205
206
206
static const zend_function_entry php_v8_heap_statistics_methods[] = {
207
207
PHP_V8_ME (HeapStatistics, __construct, ZEND_ACC_PUBLIC | ZEND_ACC_CTOR)
208
208
209
- PHP_V8_ME (HeapStatistics, total_heap_size , ZEND_ACC_PUBLIC)
210
- PHP_V8_ME (HeapStatistics, total_heap_size_executable , ZEND_ACC_PUBLIC)
211
- PHP_V8_ME (HeapStatistics, total_physical_size , ZEND_ACC_PUBLIC)
212
- PHP_V8_ME (HeapStatistics, total_available_size , ZEND_ACC_PUBLIC)
213
- PHP_V8_ME (HeapStatistics, used_heap_size , ZEND_ACC_PUBLIC)
214
- PHP_V8_ME (HeapStatistics, heap_size_limit , ZEND_ACC_PUBLIC)
215
- PHP_V8_ME (HeapStatistics, malloced_memory , ZEND_ACC_PUBLIC)
216
- PHP_V8_ME (HeapStatistics, peak_malloced_memory , ZEND_ACC_PUBLIC)
217
- PHP_V8_ME (HeapStatistics, does_zap_garbage , ZEND_ACC_PUBLIC)
209
+ PHP_V8_ME (HeapStatistics, getTotalHeapSize , ZEND_ACC_PUBLIC)
210
+ PHP_V8_ME (HeapStatistics, getTotalHeapSizeExecutable , ZEND_ACC_PUBLIC)
211
+ PHP_V8_ME (HeapStatistics, getTotalPhysicalSize , ZEND_ACC_PUBLIC)
212
+ PHP_V8_ME (HeapStatistics, getTotalAvailableSize , ZEND_ACC_PUBLIC)
213
+ PHP_V8_ME (HeapStatistics, getUsedHeapSize , ZEND_ACC_PUBLIC)
214
+ PHP_V8_ME (HeapStatistics, getHeapSizeLimit , ZEND_ACC_PUBLIC)
215
+ PHP_V8_ME (HeapStatistics, getMallocedMemory , ZEND_ACC_PUBLIC)
216
+ PHP_V8_ME (HeapStatistics, getPeakMallocedMemory , ZEND_ACC_PUBLIC)
217
+ PHP_V8_ME (HeapStatistics, doesZapGarbage , ZEND_ACC_PUBLIC)
218
218
219
219
PHP_FE_END
220
220
};
0 commit comments