Skip to content

Commit 193ede9

Browse files
committed
Deprecate PerfCounter and PerfLogger
1 parent 1a2e160 commit 193ede9

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

dev/core/src/com/google/gwt/dev/util/PerfCounter.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@
2727
* A counter which records bunch of statistics for frequently occuring
2828
* operations. Calculates: count, total time, average time, maximum time
2929
* & slow operations.
30+
*
31+
* @deprecated Will be removed in a future release.
3032
*/
33+
@Deprecated(forRemoval = true, since = "2.13.0")
3134
public class PerfCounter {
3235
private static class OperationStats {
3336
private long count = 0;
@@ -131,6 +134,7 @@ public static void print() {
131134
return;
132135
}
133136
System.out.println("------------- Perf Counters -------------");
137+
System.out.println(" DEPRECATED in 2.13, and will be removed in a future release");
134138
synchronized (operationStats) {
135139
List<String> keys = new ArrayList<String>(operationStats.keySet());
136140
Collections.sort(keys);

dev/core/src/com/google/gwt/dev/util/PerfLogger.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@
3232
* {@code gwt.perflog=true}.
3333
* </p>
3434
*
35+
* @deprecated Will be removed in a future release.
3536
*/
37+
@Deprecated(forRemoval = true, since = "2.13.0")
3638
public class PerfLogger {
3739

3840
private static class Timing {

0 commit comments

Comments
 (0)