diff options
author | George Fraser <george@fivetran.com> | 2019-01-18 18:50:22 -0800 |
---|---|---|
committer | George Fraser <george@fivetran.com> | 2019-01-18 18:50:22 -0800 |
commit | 6de988bcf2de73cda0b97908c089b19255b4fb05 (patch) | |
tree | 57e9938ebe328a58c48d3deac9d3c20cdb00a166 /src/main | |
parent | 9cd0be2200a9131f960ec5236ed6b55b7a21c2fc (diff) | |
download | java-language-server-6de988bcf2de73cda0b97908c089b19255b4fb05.zip |
Clean up benchmark
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/javacs/Profiler.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/org/javacs/Profiler.java b/src/main/java/org/javacs/Profiler.java index c7b6911..e9c3635 100644 --- a/src/main/java/org/javacs/Profiler.java +++ b/src/main/java/org/javacs/Profiler.java @@ -8,6 +8,8 @@ import java.util.*; import java.util.logging.Logger; class Profiler implements TaskListener { + static boolean quiet = false; + Set<URI> files = new HashSet<>(); Map<URI, Map<TaskEvent.Kind, Instant>> started = new HashMap<>(); Map<TaskEvent.Kind, Duration> profile = new EnumMap<>(TaskEvent.Kind.class); @@ -35,6 +37,7 @@ class Profiler implements TaskListener { } void print() { + if (quiet) return; var lines = new StringJoiner("; "); for (var kind : TaskEvent.Kind.values()) { if (!profile.containsKey(kind)) continue; |