annotate graal/com.oracle.graal.debug/src/com/oracle/graal/debug/DebugConfig.java @ 5302:55bf72fafc41

(preliminary) logging to file (-G:LogFile=asdf.txt)
author Lukas Stadler <lukas.stadler@jku.at>
date Wed, 25 Apr 2012 14:34:29 +0200
parents 1c7dd9bb16f9
children 2a44192a8b24
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4357
719ac1d92a52 More work on debug framework.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents:
diff changeset
1 /*
719ac1d92a52 More work on debug framework.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents:
diff changeset
2 * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
719ac1d92a52 More work on debug framework.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents:
diff changeset
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
719ac1d92a52 More work on debug framework.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents:
diff changeset
4 *
719ac1d92a52 More work on debug framework.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents:
diff changeset
5 * This code is free software; you can redistribute it and/or modify it
719ac1d92a52 More work on debug framework.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents:
diff changeset
6 * under the terms of the GNU General Public License version 2 only, as
719ac1d92a52 More work on debug framework.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents:
diff changeset
7 * published by the Free Software Foundation.
719ac1d92a52 More work on debug framework.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents:
diff changeset
8 *
719ac1d92a52 More work on debug framework.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents:
diff changeset
9 * This code is distributed in the hope that it will be useful, but WITHOUT
719ac1d92a52 More work on debug framework.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents:
diff changeset
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
719ac1d92a52 More work on debug framework.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents:
diff changeset
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
719ac1d92a52 More work on debug framework.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents:
diff changeset
12 * version 2 for more details (a copy is included in the LICENSE file that
719ac1d92a52 More work on debug framework.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents:
diff changeset
13 * accompanied this code).
719ac1d92a52 More work on debug framework.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents:
diff changeset
14 *
719ac1d92a52 More work on debug framework.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents:
diff changeset
15 * You should have received a copy of the GNU General Public License version
719ac1d92a52 More work on debug framework.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents:
diff changeset
16 * 2 along with this work; if not, write to the Free Software Foundation,
719ac1d92a52 More work on debug framework.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents:
diff changeset
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
719ac1d92a52 More work on debug framework.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents:
diff changeset
18 *
719ac1d92a52 More work on debug framework.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents:
diff changeset
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
719ac1d92a52 More work on debug framework.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents:
diff changeset
20 * or visit www.oracle.com if you need additional information or have any
719ac1d92a52 More work on debug framework.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents:
diff changeset
21 * questions.
719ac1d92a52 More work on debug framework.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents:
diff changeset
22 */
5060
4ed4295ce15f Update import statements.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents: 5059
diff changeset
23 package com.oracle.graal.debug;
4357
719ac1d92a52 More work on debug framework.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents:
diff changeset
24
5302
55bf72fafc41 (preliminary) logging to file (-G:LogFile=asdf.txt)
Lukas Stadler <lukas.stadler@jku.at>
parents: 5165
diff changeset
25 import java.io.*;
4363
7462c3600c3a Draft changes to the graph plotting.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents: 4361
diff changeset
26 import java.util.*;
7462c3600c3a Draft changes to the graph plotting.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents: 4361
diff changeset
27
4357
719ac1d92a52 More work on debug framework.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents:
diff changeset
28
719ac1d92a52 More work on debug framework.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents:
diff changeset
29 public interface DebugConfig {
5165
1c7dd9bb16f9 documentation to show the relationship between DebugConfig and Debug
Doug Simon <doug.simon@oracle.com>
parents: 5061
diff changeset
30 /**
1c7dd9bb16f9 documentation to show the relationship between DebugConfig and Debug
Doug Simon <doug.simon@oracle.com>
parents: 5061
diff changeset
31 * @see Debug#log(String, Object...)
1c7dd9bb16f9 documentation to show the relationship between DebugConfig and Debug
Doug Simon <doug.simon@oracle.com>
parents: 5061
diff changeset
32 */
4357
719ac1d92a52 More work on debug framework.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents:
diff changeset
33 boolean isLogEnabled();
5165
1c7dd9bb16f9 documentation to show the relationship between DebugConfig and Debug
Doug Simon <doug.simon@oracle.com>
parents: 5061
diff changeset
34
1c7dd9bb16f9 documentation to show the relationship between DebugConfig and Debug
Doug Simon <doug.simon@oracle.com>
parents: 5061
diff changeset
35 /**
1c7dd9bb16f9 documentation to show the relationship between DebugConfig and Debug
Doug Simon <doug.simon@oracle.com>
parents: 5061
diff changeset
36 * @see Debug#metric(String)
1c7dd9bb16f9 documentation to show the relationship between DebugConfig and Debug
Doug Simon <doug.simon@oracle.com>
parents: 5061
diff changeset
37 */
4357
719ac1d92a52 More work on debug framework.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents:
diff changeset
38 boolean isMeterEnabled();
5165
1c7dd9bb16f9 documentation to show the relationship between DebugConfig and Debug
Doug Simon <doug.simon@oracle.com>
parents: 5061
diff changeset
39
1c7dd9bb16f9 documentation to show the relationship between DebugConfig and Debug
Doug Simon <doug.simon@oracle.com>
parents: 5061
diff changeset
40 /**
1c7dd9bb16f9 documentation to show the relationship between DebugConfig and Debug
Doug Simon <doug.simon@oracle.com>
parents: 5061
diff changeset
41 * @see Debug#dump(Object, String, Object...)
1c7dd9bb16f9 documentation to show the relationship between DebugConfig and Debug
Doug Simon <doug.simon@oracle.com>
parents: 5061
diff changeset
42 */
4357
719ac1d92a52 More work on debug framework.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents:
diff changeset
43 boolean isDumpEnabled();
5165
1c7dd9bb16f9 documentation to show the relationship between DebugConfig and Debug
Doug Simon <doug.simon@oracle.com>
parents: 5061
diff changeset
44
1c7dd9bb16f9 documentation to show the relationship between DebugConfig and Debug
Doug Simon <doug.simon@oracle.com>
parents: 5061
diff changeset
45 /**
1c7dd9bb16f9 documentation to show the relationship between DebugConfig and Debug
Doug Simon <doug.simon@oracle.com>
parents: 5061
diff changeset
46 * @see Debug#timer(String)
1c7dd9bb16f9 documentation to show the relationship between DebugConfig and Debug
Doug Simon <doug.simon@oracle.com>
parents: 5061
diff changeset
47 */
4394
cf609017d3d4 Fixed warnings.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents: 4363
diff changeset
48 boolean isTimeEnabled();
5165
1c7dd9bb16f9 documentation to show the relationship between DebugConfig and Debug
Doug Simon <doug.simon@oracle.com>
parents: 5061
diff changeset
49
4477
27c5466afd55 Changes to debug framework.
Andreas Woess <andreas.woess@jku.at>
parents: 4394
diff changeset
50 RuntimeException interceptException(Throwable e);
5165
1c7dd9bb16f9 documentation to show the relationship between DebugConfig and Debug
Doug Simon <doug.simon@oracle.com>
parents: 5061
diff changeset
51
4363
7462c3600c3a Draft changes to the graph plotting.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents: 4361
diff changeset
52 Collection<? extends DebugDumpHandler> dumpHandlers();
5302
55bf72fafc41 (preliminary) logging to file (-G:LogFile=asdf.txt)
Lukas Stadler <lukas.stadler@jku.at>
parents: 5165
diff changeset
53
55bf72fafc41 (preliminary) logging to file (-G:LogFile=asdf.txt)
Lukas Stadler <lukas.stadler@jku.at>
parents: 5165
diff changeset
54 PrintStream output();
4357
719ac1d92a52 More work on debug framework.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents:
diff changeset
55 }