mirror of
https://github.com/Evolution-X-Devices/device_xiaomi_sm6150-common
synced 2026-01-27 12:07:36 +00:00
sm6150-common: Silence some spammy logging
HWC and cit sensor logspam is so intense it bumps up logd's idle CPU usage up to over 3%. With this change, logs are much cleaner and logd idle CPU usage is reduced to under 1%, while still allowing error logs to pass through. - Do this only in user/debug builds (except eng). - Add wifi and cnss too while we're at it, they can get noisy at times. Change-Id: I3322e333f9f18ad73e3774d322474e3a779eb7ed Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com> Signed-off-by: therealmharc <therealmharc@gmail.com>
This commit is contained in:
23
sm6150.mk
23
sm6150.mk
@@ -224,6 +224,29 @@ PRODUCT_PACKAGES += \
|
||||
PRODUCT_PACKAGES += \
|
||||
vendor.lineage.livedisplay@2.1-service.xiaomi_sm6150
|
||||
|
||||
# Logging
|
||||
SPAMMY_LOG_TAGS := \
|
||||
AiAiEcho \
|
||||
MiStcImpl \
|
||||
SDM \
|
||||
SDM-histogram \
|
||||
SRE \
|
||||
WifiHAL \
|
||||
cnss-daemon \
|
||||
libcitsensorservice@2.0-impl \
|
||||
libsensor-displayalgo \
|
||||
libsensor-parseRGB \
|
||||
libsensor-ssccalapi \
|
||||
sensors \
|
||||
sensors-hal \
|
||||
vendor.qti.hardware.display.composer-service \
|
||||
vendor.xiaomi.sensor.citsensorservice@2.0-service
|
||||
|
||||
ifneq ($(TARGET_BUILD_VARIANT),eng)
|
||||
PRODUCT_VENDOR_PROPERTIES += \
|
||||
$(foreach tag,$(SPAMMY_LOG_TAGS),log.tag.$(tag)=E)
|
||||
endif
|
||||
|
||||
# Media
|
||||
PRODUCT_COPY_FILES += \
|
||||
$(LOCAL_PATH)/configs/media/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \
|
||||
|
||||
Reference in New Issue
Block a user