Mercurial > hg > graal-jvmci-8
diff 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 |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/instrument/Visualizer.java Wed Mar 04 16:38:36 2015 -0800 +++ b/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/instrument/Visualizer.java Thu Mar 05 16:58:12 2015 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -60,9 +60,12 @@ String displayCallTargetName(CallTarget callTarget); /** - * Converts a value in the guest language to a display string. + * Converts a value in the guest language to a display string. If + * + * @param trim if {@code > 0}, them limit size of String to either the value of trim or the + * number of characters in the first line, whichever is lower. */ - String displayValue(ExecutionContext context, Object value); + String displayValue(ExecutionContext context, Object value, int trim); /** * Converts a slot identifier in the guest language to a display string.