commit | b5006191ecd9363f66c81a20baca0f29591dc270 | [log] [tgz] |
---|---|---|
author | Mike Yu <yumike@google.com> | Fri May 07 18:21:49 2021 +0800 |
committer | Mike Yu <yumike@google.com> | Tue May 25 17:19:35 2021 +0800 |
tree | 3bf8844375e9144512642ae9303c921781c6ec9e | |
parent | 30e0de95630c00cfe23addd95212974b096c147a [diff] |
Add getAverageLatencyMs in DnsStats This new method returns the average DNS response time by protocol, for example, DoT. By this method, we can know the average waiting time for a DNS response and then utilize this information to evaluate the performance of DoT and Do53. Bug: 188153519 Test: cd packages/modules/DnsResolver && atest Change-Id: I19eb25d18b1eb1ab97c7efc97d56ae9a315e4222
This code uses LOG(X) for logging. Log levels are VERBOSE,DEBUG,INFO,WARNING and ERROR. The default setting is WARNING and logs relate to WARNING and ERROR will be shown. If you want to enable the DEBUG level logs, using following command. adb shell service call dnsresolver 10 i32 1 VERBOSE 0 DEBUG 1 INFO 2 WARNING 3 ERROR 4 Verbose resolver logs could contain PII -- do NOT enable in production builds.