Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.truffle.api/src/com/oracle/truffle/api/instrument/Visualizer.java @ 19706:ef30b2318658
Truffle/Instrumentation: the Visualizer for language-specific values now has a "trim" option to limit result size.
author | Michael Van De Vanter <michael.van.de.vanter@oracle.com> |
---|---|
date | Thu, 05 Mar 2015 16:58:12 -0800 |
parents | 225ce2657c55 |
children | 894f82515e38 |
comparison
equal
deleted
inserted
replaced
19705:32b4b06b6fac | 19706:ef30b2318658 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | 4 * |
5 * This code is free software; you can redistribute it and/or modify it | 5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as | 6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this | 7 * published by the Free Software Foundation. Oracle designates this |
58 * The name of the method. | 58 * The name of the method. |
59 */ | 59 */ |
60 String displayCallTargetName(CallTarget callTarget); | 60 String displayCallTargetName(CallTarget callTarget); |
61 | 61 |
62 /** | 62 /** |
63 * Converts a value in the guest language to a display string. | 63 * Converts a value in the guest language to a display string. If |
64 * | |
65 * @param trim if {@code > 0}, them limit size of String to either the value of trim or the | |
66 * number of characters in the first line, whichever is lower. | |
64 */ | 67 */ |
65 String displayValue(ExecutionContext context, Object value); | 68 String displayValue(ExecutionContext context, Object value, int trim); |
66 | 69 |
67 /** | 70 /** |
68 * Converts a slot identifier in the guest language to a display string. | 71 * Converts a slot identifier in the guest language to a display string. |
69 */ | 72 */ |
70 String displayIdentifier(FrameSlot slot); | 73 String displayIdentifier(FrameSlot slot); |