mirror of
https://github.com/phpv8/v8js.git
synced 2024-12-22 14:01:53 +00:00
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).
This commit is contained in:
parent
b30ee1e09b
commit
3fff469174
12
v8js.cc
12
v8js.cc
@ -11,7 +11,6 @@
|
||||
+----------------------------------------------------------------------+
|
||||
*/
|
||||
|
||||
#define V8JS_DEBUG 0
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
@ -134,17 +133,6 @@ static PHP_RSHUTDOWN_FUNCTION(v8js)
|
||||
V8JSG(timer_thread) = NULL;
|
||||
}
|
||||
|
||||
#if V8JS_DEBUG
|
||||
v8::HeapStatistics stats;
|
||||
v8::V8::GetHeapStatistics(&stats);
|
||||
float used = stats.used_heap_size() / 1024.0 / 1024.0;
|
||||
float total = stats.total_heap_size() / 1024.0 / 1024.0;
|
||||
|
||||
fprintf(stderr, "### RSHUTDOWN ###\n");
|
||||
fprintf(stderr, "############ Heap Used/Total %.2f/%.2f MB ############\n", used, total);
|
||||
fflush(stderr);
|
||||
#endif
|
||||
|
||||
return SUCCESS;
|
||||
}
|
||||
/* }}} */
|
||||
|
Loading…
Reference in New Issue
Block a user