mirror of
https://github.com/phpv8/v8js.git
synced 2025-01-18 13:51:52 +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
|
#ifdef HAVE_CONFIG_H
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
@ -134,17 +133,6 @@ static PHP_RSHUTDOWN_FUNCTION(v8js)
|
|||||||
V8JSG(timer_thread) = NULL;
|
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;
|
return SUCCESS;
|
||||||
}
|
}
|
||||||
/* }}} */
|
/* }}} */
|
||||||
|
Loading…
Reference in New Issue
Block a user