<!-- <script type="text/javascript" src="https://www.google.com/jsapi"></script> --> <!-- Loading fonts with https://www.gstatic.com/external_hosted/twitter_bootstrap_css/css/bootstrap.min.css is blocked by CORS policy, which means icons won't load. --> <linkrel="stylesheet"href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"> <scriptsrc="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<scripttype="text/javascript"src="//cdn.bootcdn.net/ajax/libs/d3/4.9.1/d3.min.js"></script> {{ if .IsOptimizedJs }} <scriptsrc="compiled/historian-optimized.js?ver={{.ResVersion}}"></script> {{ else }} <!-- Need to load Closure in header. --> <script>CLOSURE_NO_DEPS=true</script> <scripttype="text/javascript"src="third_party/closure-library/closure/goog/base.js"></script> <scripttype="text/javascript"src="compiled/historian_deps-runfiles.js"></script> {{ end }}
$ adb root $ adb shell # Set the events to trace. $ echo"power:wakeup_source_activate" >> /d/tracing/set_event $ echo"power:wakeup_source_deactivate" >> /d/tracing/set_event # The default trace size for most devices is 1MB, which is relatively low and might cause the logs to overflow. # 8MB to 10MB should be a decent size for 5-6 hours of logging. $ echo 8192 > /d/tracing/buffer_size_kb $ echo 1 > /d/tracing/tracing_on
然后,将该设备用于预期的测试用例。
最后,提取日志:
1 2 3 4 5
$ echo 0 > /d/tracing/tracing_on $ adb pull /d/tracing/trace <some path> # Take a bug report at this time. $ adb bugreport > bugreport.txt