equal
deleted
inserted
replaced
31 import java.util.Collections; |
31 import java.util.Collections; |
32 import java.util.HashMap; |
32 import java.util.HashMap; |
33 import java.util.HashSet; |
33 import java.util.HashSet; |
34 import java.util.List; |
34 import java.util.List; |
35 import java.util.Map; |
35 import java.util.Map; |
|
36 import java.util.Map.Entry; |
36 import java.util.NavigableMap; |
37 import java.util.NavigableMap; |
37 import java.util.Set; |
38 import java.util.Set; |
38 import java.util.SortedMap; |
39 import java.util.SortedMap; |
39 import java.util.TreeMap; |
40 import java.util.TreeMap; |
40 |
41 |
107 } |
108 } |
108 while (true) { |
109 while (true) { |
109 SortedMap<Long, Path> after = pathSet.tailMap(timestamp); |
110 SortedMap<Long, Path> after = pathSet.tailMap(timestamp); |
110 if (!after.isEmpty()) { |
111 if (!after.isEmpty()) { |
111 Path path = after.get(after.firstKey()); |
112 Path path = after.get(after.firstKey()); |
112 Logger.log(LogTag.JFR_SYSTEM_STREAMING, LogLevel.TRACE, "Return path " + path + " for start time nanos " + timestamp); |
113 if (Logger.shouldLog(LogTag.JFR_SYSTEM_STREAMING, LogLevel.TRACE)) { |
|
114 Logger.log(LogTag.JFR_SYSTEM_STREAMING, LogLevel.TRACE, "Return path " + path + " for start time nanos " + timestamp); |
|
115 } |
113 return path; |
116 return path; |
114 } |
117 } |
115 if (!waitForPaths()) { |
118 if (!waitForPaths()) { |
116 return null; // closed |
119 return null; // closed |
117 } |
120 } |