3863N/A/*
3863N/A * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
3863N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3863N/A *
3863N/A * This code is free software; you can redistribute it and/or modify it
3863N/A * under the terms of the GNU General Public License version 2 only, as
3863N/A * published by the Free Software Foundation.
3863N/A *
3863N/A * This code is distributed in the hope that it will be useful, but WITHOUT
3863N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3863N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
3863N/A * version 2 for more details (a copy is included in the LICENSE file that
3863N/A * accompanied this code).
3863N/A *
3863N/A * You should have received a copy of the GNU General Public License version
3863N/A * 2 along with this work; if not, write to the Free Software Foundation,
3863N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3863N/A *
3863N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3863N/A * or visit www.oracle.com if you need additional information or have any
3863N/A * questions.
3863N/A *
3863N/A */
3863N/A
3863N/A#ifndef SHARE_VM_SERVICES_NMT_DCMD_HPP
3863N/A#define SHARE_VM_SERVICES_NMT_DCMD_HPP
3863N/A
3863N/A#include "services/diagnosticArgument.hpp"
3863N/A#include "services/diagnosticFramework.hpp"
3863N/A
3863N/A/**
3863N/A * Native memory tracking DCmd implementation
3863N/A */
3863N/Aclass NMTDCmd: public DCmdWithParser {
3863N/A protected:
3863N/A DCmdArgument<bool> _summary;
3863N/A DCmdArgument<bool> _detail;
3863N/A DCmdArgument<bool> _baseline;
3863N/A DCmdArgument<bool> _summary_diff;
3863N/A DCmdArgument<bool> _detail_diff;
3863N/A DCmdArgument<bool> _shutdown;
4311N/A DCmdArgument<bool> _auto_shutdown;
3863N/A#ifndef PRODUCT
3863N/A DCmdArgument<bool> _debug;
3863N/A#endif
3863N/A DCmdArgument<char*> _scale;
3863N/A
3863N/A public:
3863N/A NMTDCmd(outputStream* output, bool heap);
3863N/A static const char* name() { return "VM.native_memory"; }
3863N/A static const char* description() {
3863N/A return "Print native memory usage";
3863N/A }
3863N/A static const char* impact() {
3863N/A return "Medium:";
3863N/A }
3863N/A static int num_arguments();
3863N/A virtual void execute(TRAPS);
3863N/A};
3863N/A
3863N/A#endif // SHARE_VM_SERVICES_NMT_DCMD_HPP