Android R Preview 1 (RPP1.200123.016)
-----BEGIN PGP SIGNATURE-----
-----END PGP SIGNATURE-----
Log failure to load memtrack module only once
get_instance() only attempts to get the memtrack module once, since
it is a static variable. Therefore it makes sense to log an error if
the module is not available only once. The error shouldn't be
printed in logcat more than once during boot, since the API is only
used by one process (SystemServer).
This should allow devices that do not have anything to report in
memtrack (like HiKey and DragonBoard) to get rid of their dummy
memtrack implementation (which is optional anyway).
Test: boot aosp_x86_64 and check logcat (only one error)
1 file changed