8 * 9 * This code is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 */ 23 package org.graalvm.compiler.debug; 24 25 import java.io.PrintStream; 26 import java.util.Collection; 27 28 public interface DebugConfig { 29 30 /** 31 * Determines the current log level in the {@linkplain Debug#currentScope() current debug scope} 32 * . 33 */ 34 int getLogLevel(); 35 36 /** 37 * Determines the current dump level in the {@linkplain Debug#currentScope() current debug 38 * scope}. 39 */ 40 int getDumpLevel(); 41 42 /** 43 * Determines if logging can be enabled in the current method, regardless of the 44 * {@linkplain Debug#currentScope() current debug scope}. 45 */ 46 boolean isLogEnabledForMethod(); 47 48 /** 49 * Determines if counting is enabled in the {@linkplain Debug#currentScope() current debug 50 * scope}. | 8 * 9 * This code is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 */ 23 package org.graalvm.compiler.debug; 24 25 import java.io.PrintStream; 26 import java.util.Collection; 27 28 import org.graalvm.compiler.options.OptionValues; 29 30 public interface DebugConfig { 31 32 /** 33 * Returns the option values that can be used to configure details of debug clients. 34 */ 35 OptionValues getOptions(); 36 37 /** 38 * Determines the current log level in the {@linkplain Debug#currentScope() current debug scope} 39 * . 40 */ 41 int getLogLevel(); 42 43 /** 44 * Determines the current dump level in the {@linkplain Debug#currentScope() current debug 45 * scope}. 46 */ 47 int getDumpLevel(); 48 49 /** 50 * Determines if logging can be enabled in the current method, regardless of the 51 * {@linkplain Debug#currentScope() current debug scope}. 52 */ 53 boolean isLogEnabledForMethod(); 54 55 /** 56 * Determines if counting is enabled in the {@linkplain Debug#currentScope() current debug 57 * scope}. |