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 final class StatisticsRecorderAndroid { |
| 15 private StatisticsRecorderAndroid() {} |
| 16 |
| 17 /** |
| 18 * @return All the registered histograms as JSON text. |
| 19 */ |
| 20 public static String toJson() { |
| 21 return nativeToJson(); |
| 22 } |
| 23 |
| 24 private static native String nativeToJson(); |
| 25 } |
OLD | NEW |