diff options
Diffstat (limited to 'plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/console/cmd/MemoryUsageCommand.java')
-rw-r--r-- | plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/console/cmd/MemoryUsageCommand.java | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/console/cmd/MemoryUsageCommand.java b/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/console/cmd/MemoryUsageCommand.java deleted file mode 100644 index 4dc4173d445..00000000000 --- a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/console/cmd/MemoryUsageCommand.java +++ /dev/null @@ -1,36 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2004, 2007 Boeing. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Boeing - initial API and implementation - *******************************************************************************/ -package org.eclipse.osee.ote.core.environment.console.cmd; - -import java.text.NumberFormat; -import org.eclipse.osee.ote.core.environment.console.ConsoleCommand; -import org.eclipse.osee.ote.core.environment.console.ConsoleShell; - -/** - * @author Ken J. Aguilar - */ -public class MemoryUsageCommand extends ConsoleCommand { - private static final String NAME = "mem"; - private static final String DESCRIPTION = "outputs the system memory used by this JVM"; - - public MemoryUsageCommand() { - super(NAME, DESCRIPTION); - } - - @Override - public void doCmd(ConsoleShell shell, String[] switches, String[] args) { - - print("JVM Heap space allocated: " + NumberFormat.getInstance().format(Runtime.getRuntime().totalMemory()) + "\n"); - print("JVM Heap space used:" + NumberFormat.getInstance().format( - Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory()) + "\n"); - } - -} |