Mercurial > hg > graal-jvmci-8
comparison jvmci/jdk.vm.ci.common/src/jdk/vm/ci/common/InitTimer.java @ 23398:3e8ce13f4e12
minimize diff to jvmci-9
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Tue, 17 May 2016 21:10:34 +0200 |
parents | 1d4ce2d19e52 |
children | 9e1235406b59 |
comparison
equal
deleted
inserted
replaced
23397:a7b12c1ab514 | 23398:3e8ce13f4e12 |
---|---|
63 public static InitTimer timer(String name, Object suffix) { | 63 public static InitTimer timer(String name, Object suffix) { |
64 return ENABLED ? new InitTimer(name + suffix) : null; | 64 return ENABLED ? new InitTimer(name + suffix) : null; |
65 } | 65 } |
66 | 66 |
67 /** | 67 /** |
68 * Specifies if initialization timing is enabled. | 68 * Specifies if initialization timing is enabled. Note: This property cannot use |
69 * {@code HotSpotJVMCIRuntime.Option} since that class is not visible from this package. | |
69 */ | 70 */ |
70 private static final boolean ENABLED = Boolean.getBoolean("jvmci.InitTimer"); | 71 private static final boolean ENABLED = Boolean.getBoolean("jvmci.InitTimer"); |
71 | 72 |
72 public static final AtomicInteger nesting = ENABLED ? new AtomicInteger() : null; | 73 public static final AtomicInteger nesting = ENABLED ? new AtomicInteger() : null; |
73 public static final String SPACES = " "; | 74 public static final String SPACES = " "; |