Skip to content

Commit 3fff469

Browse files
committed
Remove stray V8JS_DEBUG define
Currently it just enables RSHUTDOWN code that should print memory usage statistics. However the code implements API calls that aren't supported anymore (for a long time).
1 parent b30ee1e commit 3fff469

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

v8js.cc

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
+----------------------------------------------------------------------+
1212
*/
1313

14-
#define V8JS_DEBUG 0
1514
#ifdef HAVE_CONFIG_H
1615
#include "config.h"
1716
#endif
@@ -134,17 +133,6 @@ static PHP_RSHUTDOWN_FUNCTION(v8js)
134133
V8JSG(timer_thread) = NULL;
135134
}
136135

137-
#if V8JS_DEBUG
138-
v8::HeapStatistics stats;
139-
v8::V8::GetHeapStatistics(&stats);
140-
float used = stats.used_heap_size() / 1024.0 / 1024.0;
141-
float total = stats.total_heap_size() / 1024.0 / 1024.0;
142-
143-
fprintf(stderr, "### RSHUTDOWN ###\n");
144-
fprintf(stderr, "############ Heap Used/Total %.2f/%.2f MB ############\n", used, total);
145-
fflush(stderr);
146-
#endif
147-
148136
return SUCCESS;
149137
}
150138
/* }}} */

0 commit comments

Comments
 (0)