android_system_core/logcat
Mark Salyzyn 71919f4f5d liblogcat: measure performance
Existing dummy benchmark converted to a single-pass benchmark.

Add support for ">[filename]" interpretation in liblogcat, helpful to
provide more consistent benchmark results when sending output to
/dev/null.

NB: results are not consistent as there is a roundtrip to logd
    service, but they are indicative of better performance for
    liblogcat.

Benchmark                                Time           CPU Iterations
----------------------------------------------------------------------
BM_logcat_stat_popen_libc         35221677 ns     603314 ns        100
BM_logcat_stat_popen_liblogcat    15871805 ns     579398 ns       1287
BM_logcat_stat_system_libc        39037825 ns     319882 ns        100
BM_logcat_stat_system_liblogcat    9896755 ns     762610 ns       1310
BM_logcat_dump_popen_libc        776206254 ns  131448772 ns          5
BM_logcat_dump_popen_liblogcat   610674905 ns  118709624 ns          6
BM_logcat_dump_system_libc       512191254 ns     388724 ns         10
BM_logcat_dump_system_liblogcat  443897570 ns  377215696 ns          2

Test: logcat-benchmarks --benchmark_filter='BM_logcat_stat*|BM_logcat_dump*'
Bug: 35326290
Change-Id: Ie94900a3070487f45742f6c0789b5b3cf036df34
2017-02-22 16:06:24 -08:00
..
include/log liblogcat: add android_logcat_popen and android_logcat_system 2017-02-17 14:42:14 -08:00
tests liblogcat: measure performance 2017-02-22 16:06:24 -08:00
.clang-format logcat: Add coding style 2017-02-17 14:42:14 -08:00
Android.mk liblogcat: LOCAL_C_INCLUDE_DIRS correction 2017-02-21 08:48:29 -08:00
event.logtags Add float support to binary event log. 2015-04-28 18:20:48 -07:00
logcat.cpp liblogcat: add simple stdout redirection 2017-02-22 15:10:56 -08:00
logcat_main.cpp logcat: Create liblogcat 2017-02-17 14:42:14 -08:00
logcat_system.cpp liblogcat: add android_logcat_popen and android_logcat_system 2017-02-17 14:42:14 -08:00
logcatd.rc resolve merge conflicts of 5f6dbd9 to nyc-mr1-dev-plus-aosp 2016-08-08 13:10:35 -07:00
logpersist logcatd: fix up logpersist.cat to filter out signature file 2016-08-08 10:20:22 -07:00
MODULE_LICENSE_APACHE2
NOTICE