Mercurial > hg > truffle
diff truffle/com.oracle.truffle.api.profiles/src/com/oracle/truffle/api/profiles/ByteValueProfile.java @ 22527:114a6a77b440
Colorifying ByteValueProfile sample code
author | Jaroslav Tulach <jaroslav.tulach@oracle.com> |
---|---|
date | Wed, 30 Dec 2015 15:33:13 +0100 |
parents | d80a5ff56f51 |
children |
line wrap: on
line diff
--- a/truffle/com.oracle.truffle.api.profiles/src/com/oracle/truffle/api/profiles/ByteValueProfile.java Wed Dec 30 11:06:33 2015 +0100 +++ b/truffle/com.oracle.truffle.api.profiles/src/com/oracle/truffle/api/profiles/ByteValueProfile.java Wed Dec 30 15:33:13 2015 +0100 @@ -37,22 +37,7 @@ * </p> * * <p> - * <b> Usage example: </b> - * - * <pre> - * class SampleNode extends Node { - * - * final ByteValueProfile profile = ByteValueProfile.createIdentityProfile(); - * - * byte execute(byte input) { - * byte profiledValue = profile.profile(input); - * // compiler may know now more about profiledValue - * return profiledValue; - * } - * } - * </pre> - * <p> - * + * <b> Usage example: </b> {@codesnippet ByteValueProfileSample} * * {@inheritDoc} *