mirror of
https://gitee.com/openharmony/graphic_graphic_2d
synced 2024-11-23 07:02:25 +00:00
Add tag EPS_LCD_FREQ and report it to XPower
Change-Id: I9ee963d42832c5ba03af6bcd9c24da671f0af6be Signed-off-by: wanc361 <bluesky7417@126.com>
This commit is contained in:
parent
9689fba769
commit
aeca3a2657
@ -59,4 +59,11 @@ RS_COMPOSITION_TIMEOUT:
|
||||
UID: {type: INT32, desc: RS_COMPOSITION_TIMEOUT the uid of current ability}
|
||||
BUNDLE_NAME: {type: STRING, desc: RS_COMPOSITION_TIMEOUT bundle name}
|
||||
ABILITY_NAME: {type: STRING, desc: RS_COMPOSITION_TIMEOUT ability name}
|
||||
MSG: {type: STRING, desc: RS_COMPOSITION_TIMEOUT message}
|
||||
MSG: {type: STRING, desc: RS_COMPOSITION_TIMEOUT message}
|
||||
|
||||
EPS_LCD_FREQ:
|
||||
__BASE: {type: STATISTIC, level: MINOR, tag: PowerStats, desc: rs screen refresh rate change}
|
||||
SOURCERATE: {type: INT32, desc: source refresh rate}
|
||||
TARGETRATE: {type: INT32, desc: target refresh rate}
|
||||
WIDTH: {type: INT32, desc: screen resolution width}
|
||||
HEIGHT: {type: INT32, desc: screen resolution height}
|
||||
|
@ -121,6 +121,7 @@ ohos_shared_library("librender_service") {
|
||||
"c_utils:utils",
|
||||
"eventhandler:libeventhandler",
|
||||
"hicollie_native:libhicollie",
|
||||
"hisysevent_native:libhisysevent",
|
||||
"hitrace_native:hitrace_meter",
|
||||
"init:libbegetutil",
|
||||
"ipc:ipc_core",
|
||||
|
@ -19,6 +19,7 @@
|
||||
|
||||
#include "platform/common/rs_log.h"
|
||||
#include "string_utils.h"
|
||||
#include "hisysevent.h"
|
||||
|
||||
namespace OHOS {
|
||||
namespace Rosen {
|
||||
@ -169,6 +170,14 @@ void RSScreen::SetActiveMode(uint32_t modeId)
|
||||
if (activeMode) {
|
||||
width_ = activeMode->width;
|
||||
height_ = activeMode->height;
|
||||
static GraphicDisplayModeInfo modeInfo;
|
||||
if ((modeInfo.freshRate != activeMode->freshRate)
|
||||
|| modeInfo.width != activeMode->width || modeInfo.height != activeMode->height) {
|
||||
HiSysEventWrite(HiSysEvent::Domain::GRAPHIC, "EPS_LCD_FREQ",
|
||||
HiSysEvent::EventType::STATISTIC, "SOURCERATE", modeInfo.freshRate,
|
||||
"TARGETRATE", activeMode->freshRate, "WIDTH", width_, "HEIGHT", height_);
|
||||
modeInfo = activeMode.value();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user