project_files/HedgewarsMobile/Classes/CommodityFunctions.m
changeset 5486 e75f7c3c6275
parent 5483 fc755bb8096d
child 5994 3c578f531cc1
--- a/project_files/HedgewarsMobile/Classes/CommodityFunctions.m	Sun Jul 31 12:07:44 2011 -0400
+++ b/project_files/HedgewarsMobile/Classes/CommodityFunctions.m	Mon Aug 01 00:48:38 2011 +0200
@@ -41,6 +41,7 @@
 
 // by http://landonf.bikemonkey.org/code/iphone/Determining_Available_Memory.20081203.html
 void print_free_memory () {
+#ifdef DEBUG
     mach_port_t host_port;
     mach_msg_type_number_t host_size;
     vm_size_t pagesize;
@@ -59,6 +60,7 @@
     natural_t mem_free = vm_stat.free_count * pagesize;
     natural_t mem_total = mem_used + mem_free;
     DLog(@"used: %u free: %u total: %u", mem_used, mem_free, mem_total);
+#endif
 }
 
 BOOL inline isApplePhone () {