public void addMemoryStatsToSnooper() { addData("memory_total", Long.valueOf(Runtime.getRuntime().totalMemory())); addData("memory_max", Long.valueOf(Runtime.getRuntime().maxMemory())); addData("memory_free", Long.valueOf(Runtime.getRuntime().freeMemory())); addData("cpu_cores", Integer.valueOf(Runtime.getRuntime().availableProcessors())); playerStatsCollector.addServerStatsToSnooper(this); }
private void addBaseDataToSnooper() { addJvmArgsToSnooper(); addData("snooper_token", uniqueID); addData("os_name", System.getProperty("os.name")); addData("os_version", System.getProperty("os.version")); addData("os_architecture", System.getProperty("os.arch")); addData("java_version", System.getProperty("java.version")); addData("version", "1.3.1"); playerStatsCollector.addServerTypeToSnooper(this); }