OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 package org.chromium.base.metrics; | |
6 | |
7 import org.chromium.base.annotations.JNINamespace; | |
8 | |
9 /** | |
10 * Java API which exposes the registered histograms on the native side as | |
11 * JSON test. | |
12 */ | |
13 @JNINamespace("base::android") | |
14 public class StatisticsRecorderAndroid { | |
nyquist
2016/10/03 20:55:38
Nit: Should this class be final?
tbansal1
2016/10/04 03:34:11
Done.
| |
15 private StatisticsRecorderAndroid() {} | |
16 | |
17 // Returns all the registered histograms as JSON text. | |
nyquist
2016/10/03 20:55:38
Nit: Use JavaDoc style (the /** ... */ stuff)
tbansal1
2016/10/04 03:34:11
Done.
| |
18 public static String toJson() { | |
19 return nativeToJson(); | |
20 } | |
21 | |
22 private static native String nativeToJson(); | |
23 } | |
OLD | NEW |