< prev index next >

src/hotspot/share/memory/metaspace/metaspaceDCmd.cpp

Print this page
rev 50188 : [mq]: 8203219-VM.metaspace-show-loaded-classes

*** 1,7 **** --- 1,8 ---- /* * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2018, SAP and/or its affiliates. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 32,51 **** --- 33,54 ---- MetaspaceDCmd::MetaspaceDCmd(outputStream* output, bool heap) : DCmdWithParser(output, heap) , _basic("basic", "Prints a basic summary (does not need a safepoint).", "BOOLEAN", false, "false") , _show_loaders("show-loaders", "Shows usage by class loader.", "BOOLEAN", false, "false") + , _show_classes("show-classes", "If show-loaders is set, shows loaded classes for each loader.", "BOOLEAN", false, "false") , _by_chunktype("by-chunktype", "Break down numbers by chunk type.", "BOOLEAN", false, "false") , _by_spacetype("by-spacetype", "Break down numbers by loader type.", "BOOLEAN", false, "false") , _show_vslist("vslist", "Shows details about the underlying virtual space.", "BOOLEAN", false, "false") , _show_vsmap("vsmap", "Shows chunk composition of the underlying virtual spaces", "BOOLEAN", false, "false") , _scale("scale", "Memory usage in which to scale. Valid values are: 1, KB, MB or GB (fixed scale) " "or \"dynamic\" for a dynamically choosen scale.", "STRING", false, "dynamic") { _dcmdparser.add_dcmd_option(&_basic); _dcmdparser.add_dcmd_option(&_show_loaders); + _dcmdparser.add_dcmd_option(&_show_classes); _dcmdparser.add_dcmd_option(&_by_chunktype); _dcmdparser.add_dcmd_option(&_by_spacetype); _dcmdparser.add_dcmd_option(&_show_vslist); _dcmdparser.add_dcmd_option(&_show_vsmap); _dcmdparser.add_dcmd_option(&_scale);
*** 85,94 **** --- 88,98 ---- MetaspaceUtils::print_basic_report(output(), scale); } else { // Full mode. Requires safepoint. int flags = 0; if (_show_loaders.value()) flags |= MetaspaceUtils::rf_show_loaders; + if (_show_classes.value()) flags |= MetaspaceUtils::rf_show_classes; if (_by_chunktype.value()) flags |= MetaspaceUtils::rf_break_down_by_chunktype; if (_by_spacetype.value()) flags |= MetaspaceUtils::rf_break_down_by_spacetype; if (_show_vslist.value()) flags |= MetaspaceUtils::rf_show_vslist; if (_show_vsmap.value()) flags |= MetaspaceUtils::rf_show_vsmap; VM_PrintMetadata op(output(), scale, flags);
< prev index next >