Adds a tool for local usage of statsd. The tool can: -upload a config from a file -get the report data from statsd Both the config and the report can be either in binary or human-readable format, as specified. Usage: make statsd_localdrive ./out/host/linux-x86/bin/statsd_localdrive Also, adds the ability to specify whether dump-report should also erase the data when it returns it. A test for this is added. Test: make -j8 statsd_test && adb sync data && adb shell data/nativetest64/statsd_test/statsd_test Test: make statsd_localdrive && ./out/host/linux-x86/bin/statsd_localdrive <commands> Bug: 77909781 Change-Id: I9a38964988e90c4158a555f41879534267aadd32
25 lines
597 B
Plaintext
25 lines
597 B
Plaintext
java_binary_host {
|
|
name: "statsd_localdrive",
|
|
manifest: "localdrive_manifest.txt",
|
|
srcs: [
|
|
"src/com/android/statsd/shelltools/localdrive/*.java",
|
|
"src/com/android/statsd/shelltools/Utils.java",
|
|
],
|
|
static_libs: [
|
|
"platformprotos",
|
|
"guava",
|
|
],
|
|
}
|
|
|
|
java_binary_host {
|
|
name: "statsd_testdrive",
|
|
manifest: "testdrive_manifest.txt",
|
|
srcs: [
|
|
"src/com/android/statsd/shelltools/testdrive/*.java",
|
|
"src/com/android/statsd/shelltools/Utils.java",
|
|
],
|
|
static_libs: [
|
|
"platformprotos",
|
|
"guava",
|
|
],
|
|
} |