Browse Source

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).
Stefan Siegl 9 years ago
parent
commit
3fff469174
1 changed files with 0 additions and 12 deletions
  1. 0 12
      v8js.cc

+ 0 - 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;
 }
 }
 /* }}} */
 /* }}} */