Jonathan Hart | 23701d1 | 2014-04-03 10:45:48 -0700 | [diff] [blame] | 1 | package net.onrc.onos.core.util; |
Brian O'Connor | 8fdfb06 | 2014-01-08 17:47:57 -0800 | [diff] [blame] | 2 | |
Brian O'Connor | 2daf7a9 | 2014-01-14 11:26:35 -0800 | [diff] [blame] | 3 | import java.util.Map.Entry; |
Brian O'Connor | a5e5f83 | 2014-01-15 16:58:14 -0800 | [diff] [blame] | 4 | import java.util.Queue; |
Brian O'Connor | 8fdfb06 | 2014-01-08 17:47:57 -0800 | [diff] [blame] | 5 | import java.util.concurrent.ConcurrentHashMap; |
Brian O'Connor | a5e5f83 | 2014-01-15 16:58:14 -0800 | [diff] [blame] | 6 | import java.util.concurrent.ConcurrentLinkedQueue; |
Brian O'Connor | 8fdfb06 | 2014-01-08 17:47:57 -0800 | [diff] [blame] | 7 | |
| 8 | import org.slf4j.Logger; |
| 9 | import org.slf4j.LoggerFactory; |
| 10 | |
| 11 | /** |
Ray Milkey | b41100a | 2014-04-10 10:42:15 -0700 | [diff] [blame] | 12 | * Class for collecting performance measurements. |
Brian O'Connor | 8fdfb06 | 2014-01-08 17:47:57 -0800 | [diff] [blame] | 13 | */ |
| 14 | public class PerformanceMonitor { |
Ray Milkey | ec83894 | 2014-04-09 11:28:43 -0700 | [diff] [blame] | 15 | private static final Logger log = LoggerFactory.getLogger(PerformanceMonitor.class); |
Yuta HIGUCHI | 8f28145 | 2014-02-18 16:08:04 -0800 | [diff] [blame] | 16 | |
| 17 | // experiment name -> PerformanceMonitor |
Ray Milkey | 5c9f2db | 2014-04-09 10:31:21 -0700 | [diff] [blame] | 18 | private static final ConcurrentHashMap<String, PerformanceMonitor> PERF_MONS = new ConcurrentHashMap<>(); |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 19 | |
Yuta HIGUCHI | 8f28145 | 2014-02-18 16:08:04 -0800 | [diff] [blame] | 20 | public static PerformanceMonitor experiment(String name) { |
Ray Milkey | 5c9f2db | 2014-04-09 10:31:21 -0700 | [diff] [blame] | 21 | PerformanceMonitor pm = PERF_MONS.get(name); |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 22 | if (pm == null) { |
| 23 | pm = new PerformanceMonitor(); |
Ray Milkey | 5c9f2db | 2014-04-09 10:31:21 -0700 | [diff] [blame] | 24 | PerformanceMonitor existing = PERF_MONS.putIfAbsent(name, pm); |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 25 | if (existing != null) { |
| 26 | pm = existing; |
| 27 | } |
| 28 | } |
| 29 | return pm; |
Yuta HIGUCHI | 8f28145 | 2014-02-18 16:08:04 -0800 | [diff] [blame] | 30 | } |
| 31 | |
| 32 | // tag -> Measurements |
| 33 | private final ConcurrentHashMap<String, Queue<Measurement>> map = new ConcurrentHashMap<>(); |
| 34 | private long overhead; |
| 35 | private long experimentStart = Long.MAX_VALUE; |
Ray Milkey | ec83894 | 2014-04-09 11:28:43 -0700 | [diff] [blame] | 36 | private static final double NORMALIZATION = Math.pow(10, 6); |
Brian O'Connor | 2daf7a9 | 2014-01-14 11:26:35 -0800 | [diff] [blame] | 37 | |
Brian O'Connor | 8fdfb06 | 2014-01-08 17:47:57 -0800 | [diff] [blame] | 38 | /** |
Ray Milkey | b41100a | 2014-04-10 10:42:15 -0700 | [diff] [blame] | 39 | * Start a performance measurement, identified by a tag. |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 40 | * <p/> |
Brian O'Connor | 8fdfb06 | 2014-01-08 17:47:57 -0800 | [diff] [blame] | 41 | * Note: Only a single measurement can use the same tag at a time. |
Brian O'Connor | 2daf7a9 | 2014-01-14 11:26:35 -0800 | [diff] [blame] | 42 | * ..... not true anymore. |
Yuta HIGUCHI | a7188f2 | 2014-02-18 12:48:06 -0800 | [diff] [blame] | 43 | * |
Brian O'Connor | 8fdfb06 | 2014-01-08 17:47:57 -0800 | [diff] [blame] | 44 | * @param tag for performance measurement |
| 45 | */ |
Yuta HIGUCHI | 8f28145 | 2014-02-18 16:08:04 -0800 | [diff] [blame] | 46 | public Measurement startStep(String tag) { |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 47 | long start = System.nanoTime(); |
| 48 | if (start < experimentStart) { |
| 49 | experimentStart = start; |
| 50 | } |
| 51 | Queue<Measurement> list = map.get(tag); |
| 52 | if (list == null) { |
| 53 | list = new ConcurrentLinkedQueue<Measurement>(); |
Ray Milkey | 2476cac | 2014-04-08 11:03:21 -0700 | [diff] [blame] | 54 | Queue<Measurement> existingList = map.putIfAbsent(tag, list); |
| 55 | if (existingList != null) { |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 56 | // someone concurrently added, using theirs |
Ray Milkey | 2476cac | 2014-04-08 11:03:21 -0700 | [diff] [blame] | 57 | list = existingList; |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 58 | } |
| 59 | } |
| 60 | Measurement m = new Measurement(); |
| 61 | list.add(m); |
| 62 | m.start(); |
| 63 | overhead += System.nanoTime() - start; |
| 64 | return m; |
Brian O'Connor | 8fdfb06 | 2014-01-08 17:47:57 -0800 | [diff] [blame] | 65 | } |
Yuta HIGUCHI | a7188f2 | 2014-02-18 12:48:06 -0800 | [diff] [blame] | 66 | |
Brian O'Connor | 8fdfb06 | 2014-01-08 17:47:57 -0800 | [diff] [blame] | 67 | /** |
Yuta HIGUCHI | a7188f2 | 2014-02-18 12:48:06 -0800 | [diff] [blame] | 68 | * Stop a performance measurement. |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 69 | * <p/> |
Brian O'Connor | 8fdfb06 | 2014-01-08 17:47:57 -0800 | [diff] [blame] | 70 | * You must have already started a measurement with tag. |
Yuta HIGUCHI | a7188f2 | 2014-02-18 12:48:06 -0800 | [diff] [blame] | 71 | * |
Brian O'Connor | 8fdfb06 | 2014-01-08 17:47:57 -0800 | [diff] [blame] | 72 | * @param tag for performance measurement |
| 73 | */ |
Yuta HIGUCHI | 8f28145 | 2014-02-18 16:08:04 -0800 | [diff] [blame] | 74 | public void stopStep(String tag) { |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 75 | long time = System.nanoTime(); |
| 76 | Queue<Measurement> list = map.get(tag); |
| 77 | if (list == null || list.size() == 0) { |
| 78 | log.error("Tag {} does not exist", tag); |
Pavlin Radoslavov | 9a496ad | 2014-04-09 16:51:25 -0700 | [diff] [blame] | 79 | overhead += System.nanoTime() - time; |
| 80 | return; |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 81 | } |
| 82 | list.peek().stop(time); |
| 83 | if (list.size() > 1) { |
| 84 | log.error("Tag {} has multiple measurements", tag); |
| 85 | } |
| 86 | overhead += System.nanoTime() - time; |
Brian O'Connor | 8fdfb06 | 2014-01-08 17:47:57 -0800 | [diff] [blame] | 87 | } |
Yuta HIGUCHI | a7188f2 | 2014-02-18 12:48:06 -0800 | [diff] [blame] | 88 | |
Brian O'Connor | 8fdfb06 | 2014-01-08 17:47:57 -0800 | [diff] [blame] | 89 | /** |
| 90 | * Clear all performance measurements. |
| 91 | */ |
Yuta HIGUCHI | 8f28145 | 2014-02-18 16:08:04 -0800 | [diff] [blame] | 92 | public void reset() { |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 93 | map.clear(); |
| 94 | overhead = 0; |
| 95 | experimentStart = Long.MAX_VALUE; |
Brian O'Connor | 8fdfb06 | 2014-01-08 17:47:57 -0800 | [diff] [blame] | 96 | } |
Yuta HIGUCHI | a7188f2 | 2014-02-18 12:48:06 -0800 | [diff] [blame] | 97 | |
Brian O'Connor | 8fdfb06 | 2014-01-08 17:47:57 -0800 | [diff] [blame] | 98 | /** |
Ray Milkey | b41100a | 2014-04-10 10:42:15 -0700 | [diff] [blame] | 99 | * Write all performance measurements to the log. |
Brian O'Connor | 8fdfb06 | 2014-01-08 17:47:57 -0800 | [diff] [blame] | 100 | */ |
Yuta HIGUCHI | 8f28145 | 2014-02-18 16:08:04 -0800 | [diff] [blame] | 101 | public void reportAll() { |
Pavlin Radoslavov | 424150c | 2014-04-09 12:12:36 -0700 | [diff] [blame] | 102 | StringBuilder result = new StringBuilder(); |
| 103 | |
| 104 | result.append("Performance Results: (avg/start/stop/count)\n"); |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 105 | if (map.size() == 0) { |
Pavlin Radoslavov | 424150c | 2014-04-09 12:12:36 -0700 | [diff] [blame] | 106 | result.append("No Measurements"); |
| 107 | log.error(result.toString()); |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 108 | return; |
| 109 | } |
| 110 | long experimentEnd = -1; |
| 111 | for (Entry<String, Queue<Measurement>> e : map.entrySet()) { |
| 112 | String key = e.getKey(); |
| 113 | Queue<Measurement> list = e.getValue(); |
| 114 | long total = 0, count = 0; |
| 115 | long start = Long.MAX_VALUE, stop = -1; |
| 116 | for (Measurement m : list) { |
| 117 | if (m.stop < 0) { |
| 118 | continue; // measurement has not been stopped |
| 119 | } |
| 120 | // Collect overall start and end times |
| 121 | if (m.start < start) { |
| 122 | start = m.start; |
| 123 | } |
| 124 | if (m.stop > stop) { |
| 125 | stop = m.stop; |
| 126 | if (stop > experimentEnd) { |
| 127 | experimentEnd = stop; |
| 128 | } |
| 129 | } |
| 130 | // Collect statistics for average |
| 131 | total += m.elapsed(); |
| 132 | count++; |
| 133 | } |
| 134 | double avg = (double) total / count; |
| 135 | // Normalize start/stop |
| 136 | start -= experimentStart; |
| 137 | stop -= experimentStart; |
Pavlin Radoslavov | 424150c | 2014-04-09 12:12:36 -0700 | [diff] [blame] | 138 | result.append(key + '=' + |
Ray Milkey | 5c9f2db | 2014-04-09 10:31:21 -0700 | [diff] [blame] | 139 | (avg / NORMALIZATION) + '/' + |
| 140 | (start / NORMALIZATION) + '/' + |
| 141 | (stop / NORMALIZATION) + '/' + |
Pavlin Radoslavov | 424150c | 2014-04-09 12:12:36 -0700 | [diff] [blame] | 142 | count + '\n'); |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 143 | } |
Ray Milkey | 5c9f2db | 2014-04-09 10:31:21 -0700 | [diff] [blame] | 144 | double overheadMs = overhead / NORMALIZATION; |
| 145 | double experimentElapsed = (experimentEnd - experimentStart) / NORMALIZATION; |
Pavlin Radoslavov | 424150c | 2014-04-09 12:12:36 -0700 | [diff] [blame] | 146 | result.append("TotalTime:" + experimentElapsed + "/Overhead:" + overheadMs); |
| 147 | log.error(result.toString()); |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 148 | // log.error("Performance Results: {} with measurement overhead: {} ms", map, overheadMilli); |
Brian O'Connor | 8fdfb06 | 2014-01-08 17:47:57 -0800 | [diff] [blame] | 149 | } |
Pavlin Radoslavov | b5e3178 | 2014-01-12 20:11:46 -0800 | [diff] [blame] | 150 | |
| 151 | /** |
Ray Milkey | b41100a | 2014-04-10 10:42:15 -0700 | [diff] [blame] | 152 | * Write the performance measurement for a tag to the log. |
Pavlin Radoslavov | b5e3178 | 2014-01-12 20:11:46 -0800 | [diff] [blame] | 153 | * |
| 154 | * @param tag the tag name. |
| 155 | */ |
Yuta HIGUCHI | 8f28145 | 2014-02-18 16:08:04 -0800 | [diff] [blame] | 156 | public void reportStep(String tag) { |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 157 | Queue<Measurement> list = map.get(tag); |
| 158 | if (list == null) { |
| 159 | return; //TODO |
| 160 | } |
| 161 | //TODO: fix this; |
| 162 | Measurement m = list.peek(); |
| 163 | if (m != null) { |
| 164 | log.error("Performance Result: tag = {} start = {} stop = {} elapsed = {}", |
| 165 | tag, m.start, m.stop, m.toString()); |
| 166 | } else { |
| 167 | log.error("Performance Result: unknown tag {}", tag); |
| 168 | } |
Pavlin Radoslavov | b5e3178 | 2014-01-12 20:11:46 -0800 | [diff] [blame] | 169 | } |
| 170 | |
Brian O'Connor | 8fdfb06 | 2014-01-08 17:47:57 -0800 | [diff] [blame] | 171 | /** |
Ray Milkey | b41100a | 2014-04-10 10:42:15 -0700 | [diff] [blame] | 172 | * A single performance measurement. |
Brian O'Connor | 8fdfb06 | 2014-01-08 17:47:57 -0800 | [diff] [blame] | 173 | */ |
Brian O'Connor | 2daf7a9 | 2014-01-14 11:26:35 -0800 | [diff] [blame] | 174 | public static class Measurement { |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 175 | long start; |
| 176 | long stop = -1; |
Yuta HIGUCHI | a7188f2 | 2014-02-18 12:48:06 -0800 | [diff] [blame] | 177 | |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 178 | /** |
Ray Milkey | b41100a | 2014-04-10 10:42:15 -0700 | [diff] [blame] | 179 | * Start the measurement. |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 180 | */ |
| 181 | public void start() { |
| 182 | if (start <= 0) { |
| 183 | start = System.nanoTime(); |
| 184 | } |
| 185 | } |
Yuta HIGUCHI | a7188f2 | 2014-02-18 12:48:06 -0800 | [diff] [blame] | 186 | |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 187 | /** |
Ray Milkey | b41100a | 2014-04-10 10:42:15 -0700 | [diff] [blame] | 188 | * Stop the measurement. |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 189 | */ |
| 190 | public void stop() { |
| 191 | long now = System.nanoTime(); |
| 192 | stop(now); |
| 193 | } |
Yuta HIGUCHI | a7188f2 | 2014-02-18 12:48:06 -0800 | [diff] [blame] | 194 | |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 195 | /** |
Ray Milkey | b41100a | 2014-04-10 10:42:15 -0700 | [diff] [blame] | 196 | * Stop the measurement at a specific time. |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 197 | * |
| 198 | * @param time to stop |
| 199 | */ |
| 200 | public void stop(long time) { |
| 201 | if (stop <= 0) { |
| 202 | stop = time; |
| 203 | } |
| 204 | } |
Yuta HIGUCHI | a7188f2 | 2014-02-18 12:48:06 -0800 | [diff] [blame] | 205 | |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 206 | /** |
Ray Milkey | b41100a | 2014-04-10 10:42:15 -0700 | [diff] [blame] | 207 | * Compute the elapsed time of the measurement in nanoseconds. |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 208 | * |
| 209 | * @return the measurement time in nanoseconds, or -1 if the measurement is stil running. |
| 210 | */ |
| 211 | public long elapsed() { |
| 212 | if (stop <= 0) { |
| 213 | return -1; |
| 214 | } else { |
| 215 | return stop - start; |
| 216 | } |
| 217 | } |
Yuta HIGUCHI | a7188f2 | 2014-02-18 12:48:06 -0800 | [diff] [blame] | 218 | |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 219 | /** |
| 220 | * Returns the number of milliseconds for the measurement as a String. |
| 221 | */ |
| 222 | @Override |
| 223 | public String toString() { |
Ray Milkey | 5c9f2db | 2014-04-09 10:31:21 -0700 | [diff] [blame] | 224 | double milli = elapsed() / NORMALIZATION; |
| 225 | double startMs = start / NORMALIZATION; |
| 226 | double stopMs = stop / NORMALIZATION; |
Yuta HIGUCHI | a7188f2 | 2014-02-18 12:48:06 -0800 | [diff] [blame] | 227 | |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 228 | return milli + "ms/" + startMs + '/' + stopMs; |
| 229 | } |
Brian O'Connor | 8fdfb06 | 2014-01-08 17:47:57 -0800 | [diff] [blame] | 230 | } |
Yuta HIGUCHI | a7188f2 | 2014-02-18 12:48:06 -0800 | [diff] [blame] | 231 | |
Yuta HIGUCHI | 8f28145 | 2014-02-18 16:08:04 -0800 | [diff] [blame] | 232 | @Deprecated |
Ray Milkey | 5c9f2db | 2014-04-09 10:31:21 -0700 | [diff] [blame] | 233 | private static final PerformanceMonitor PERFORMANCE_MONITOR_INSTANCE = new PerformanceMonitor(); |
Yuta HIGUCHI | 8f28145 | 2014-02-18 16:08:04 -0800 | [diff] [blame] | 234 | |
| 235 | @Deprecated |
| 236 | public static Measurement start(String tag) { |
Ray Milkey | 5c9f2db | 2014-04-09 10:31:21 -0700 | [diff] [blame] | 237 | return PERFORMANCE_MONITOR_INSTANCE.startStep(tag); |
Yuta HIGUCHI | 8f28145 | 2014-02-18 16:08:04 -0800 | [diff] [blame] | 238 | } |
| 239 | |
| 240 | @Deprecated |
| 241 | public static void stop(String tag) { |
Ray Milkey | 5c9f2db | 2014-04-09 10:31:21 -0700 | [diff] [blame] | 242 | PERFORMANCE_MONITOR_INSTANCE.stopStep(tag); |
Yuta HIGUCHI | 8f28145 | 2014-02-18 16:08:04 -0800 | [diff] [blame] | 243 | } |
| 244 | |
| 245 | @Deprecated |
| 246 | public static void clear() { |
Ray Milkey | 5c9f2db | 2014-04-09 10:31:21 -0700 | [diff] [blame] | 247 | PERFORMANCE_MONITOR_INSTANCE.reset(); |
Yuta HIGUCHI | 8f28145 | 2014-02-18 16:08:04 -0800 | [diff] [blame] | 248 | } |
| 249 | |
| 250 | @Deprecated |
| 251 | public static void report() { |
Ray Milkey | 5c9f2db | 2014-04-09 10:31:21 -0700 | [diff] [blame] | 252 | PERFORMANCE_MONITOR_INSTANCE.reportAll(); |
Yuta HIGUCHI | 8f28145 | 2014-02-18 16:08:04 -0800 | [diff] [blame] | 253 | } |
| 254 | |
| 255 | @Deprecated |
| 256 | public static void report(String tag) { |
Ray Milkey | 5c9f2db | 2014-04-09 10:31:21 -0700 | [diff] [blame] | 257 | PERFORMANCE_MONITOR_INSTANCE.reportStep(tag); |
Yuta HIGUCHI | 8f28145 | 2014-02-18 16:08:04 -0800 | [diff] [blame] | 258 | } |
| 259 | |
Ray Milkey | 45614c5 | 2014-04-07 16:30:54 -0700 | [diff] [blame] | 260 | public static void main(String[] args) { |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 261 | // test the measurement overhead |
| 262 | String tag; |
| 263 | for (int i = 0; i < 2; i++) { |
| 264 | tag = "foo foo foo"; |
| 265 | Measurement m; |
| 266 | m = start(tag); |
| 267 | System.out.println(tag); |
| 268 | m.stop(); |
| 269 | m = start(tag); |
| 270 | System.out.println(tag); |
| 271 | m.stop(); |
| 272 | m = start(tag); |
| 273 | System.out.println(tag); |
| 274 | m.stop(); |
| 275 | m = start(tag); |
| 276 | System.out.println(tag); |
| 277 | m.stop(); |
| 278 | tag = "bar"; |
| 279 | start(tag); |
| 280 | stop(tag); |
| 281 | tag = "baz"; |
| 282 | start(tag); |
| 283 | stop(tag); |
| 284 | report(); |
| 285 | clear(); |
| 286 | } |
| 287 | for (int i = 0; i < 100; i++) { |
| 288 | tag = "a"; |
| 289 | start(tag); |
| 290 | stop(tag); |
| 291 | start(tag); |
| 292 | stop(tag); |
brian | 6df8823 | 2014-01-14 17:05:07 -0800 | [diff] [blame] | 293 | |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 294 | start(tag); |
| 295 | stop(tag); |
| 296 | start(tag); |
| 297 | stop(tag); |
| 298 | start(tag); |
| 299 | stop(tag); |
| 300 | start(tag); |
| 301 | stop(tag); |
| 302 | start(tag); |
| 303 | stop(tag); |
| 304 | start(tag); |
| 305 | stop(tag); |
brian | 6df8823 | 2014-01-14 17:05:07 -0800 | [diff] [blame] | 306 | |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 307 | tag = "b"; |
| 308 | start(tag); |
| 309 | stop(tag); |
| 310 | tag = "c"; |
| 311 | start(tag); |
| 312 | stop(tag); |
| 313 | report(); |
| 314 | clear(); |
| 315 | } |
Brian O'Connor | 8fdfb06 | 2014-01-08 17:47:57 -0800 | [diff] [blame] | 316 | } |
| 317 | } |