Chenjie Yu
dd7dc4f7de
local test drive tool for statsd
example usage:
$./out/host/linux-x86/bin/statsd_testdrive 10009
Uploading the following config to statsd:
id: 56789
gauge_metric {
id: 2222
what: 1234567
gauge_fields_filter {
include_all: true
}
bucket: ONE_MINUTE
}
atom_matcher {
id: 1234567
simple_atom_matcher {
atom_id: 10009
}
}
allowed_log_source: "AID_GRAPHICS"
allowed_log_source: "AID_INCIDENTD"
allowed_log_source: "AID_STATSD"
allowed_log_source: "AID_RADIO"
allowed_log_source: "com.android.systemui"
allowed_log_source: "com.android.vending"
allowed_log_source: "AID_SYSTEM"
allowed_log_source: "AID_ROOT"
allowed_log_source: "AID_BLUETOOTH"
hash_strings_in_metric_report: false
Success!
Success!
Now wait for 2 minutes ...
Success!
Got following metric data:
metric_id: 2222
gauge_metrics {
data {
bucket_info {
atom {
cpu_time_per_uid {
uid: 0
user_time_millis: 581844000
sys_time_millis: 135242354000
}
}
elapsed_timestamp_nanos: 610841423012521
start_bucket_elapsed_millis: 610841423
end_bucket_elapsed_millis: 610880290
}
bucket_info {
atom {
cpu_time_per_uid {
uid: 0
user_time_millis: 581904000
sys_time_millis: 135251114000
}
}
elapsed_timestamp_nanos: 610880295723373
bucket_num: 65
}
bucket_info {
atom {
cpu_time_per_uid {
uid: 0
user_time_millis: 581944000
sys_time_millis: 135264674000
}
}
elapsed_timestamp_nanos: 610940293803881
start_bucket_elapsed_millis: 610940290
end_bucket_elapsed_millis: 610961579
}
}
}
time_base_elapsed_nano_seconds: 606980290711787
bucket_size_nano_seconds: 60000000000
Success!
Test: manual test
Change-Id: I8ea5249807cf3cf6971e3bbc8696ff33025ba8d7
2018-10-15 15:47:17 -07:00
..
2018-05-04 23:17:00 -07:00
2018-08-22 09:56:34 +01:00
2018-08-22 16:38:27 -07:00
2018-10-05 16:51:13 -07:00
2018-06-20 16:23:58 +01:00
2018-08-08 13:40:48 -07:00
2018-05-14 16:47:02 -07:00
2018-08-28 10:39:42 -07:00
2018-09-29 07:39:04 +00:00
2018-05-22 07:23:34 -07:00
2018-05-19 08:36:51 +09:00
2018-05-23 14:50:05 -07:00
2018-09-20 19:03:42 +00:00
2018-04-20 13:11:23 -06:00
2018-10-15 15:47:17 -07:00
2018-09-19 12:49:17 -07:00