Update of /cvsroot/jake2/jake2/src/jake2/server
In directory vz-cvs-3.sog:/tmp/cvs-serv19490/src/jake2/server
Modified Files:
SV_CCMDS.java
Log Message:
jvm_memory command added
Index: SV_CCMDS.java
===================================================================
RCS file: /cvsroot/jake2/jake2/src/jake2/server/SV_CCMDS.java,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** SV_CCMDS.java 7 Jun 2007 10:31:10 -0000 1.16
--- SV_CCMDS.java 7 Jul 2011 21:07:09 -0000 1.17
***************
*** 583,586 ****
--- 583,596 ----
}
}
+
+
+ /** Print the memory used by the java vm. */
+ public static void VM_Mem_f()
+ {
+ Com.Printf("vm memory:" +
+ (Runtime.getRuntime().totalMemory() -
+ Runtime.getRuntime().freeMemory()) + "\n" );
+ }
+
/*
==================
***************
*** 1109,1112 ****
--- 1119,1134 ----
}
});
+
+ Cmd.AddCommand("jvm_memory", new xcommand_t() {
+ public void execute() {
+ VM_Mem_f();
+ }
+ });
+
+ // Cmd.AddCommand("spawnbot", new xcommand_t() {
+ // public void execute() {
+ // AdvancedBot.SP_Oak();
+ // }
+ // });
}
}
|