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
Loading
Please register or sign in to comment