commit | 5cbcb52b96b5a2b97234381af59002fbe32593cd | [log] [tgz] |
---|---|---|
author | Jeff Sharkey <jsharkey@android.com> | Mon Apr 11 14:40:10 2016 -0600 |
committer | Jeff Sharkey <jsharkey@android.com> | Mon Apr 11 14:40:34 2016 -0600 |
tree | f71813c776c516b955f4d8548fe7d9bb320f0eb8 | |
parent | ed2edc7a8e044e31a6c9db638c97f9c21fb1d946 [diff] |
Rate-limit how often we collect wtf() logs. We've seen that aggressive Log.wtf() calls can DoS the system process, since we fork and collect recent logcat output for each call. After this CL, we rate-limit to only perform this heavy lifting 5 times during any given 10 second window of time. We still log the wtf() message to the binary event log. Bug: 28117774, 28052546, 27994717, 27381069 Change-Id: Ic91b23fe7ee26818083a8d40fd4850fcb9d93643