mirror of
https://gitee.com/openharmony/graphic_graphic_2d
synced 2024-11-28 01:34:16 +00:00
修改响应时延和完成时延的上报类型为BEHAVIOR
Signed-off-by: 周思远 <zhousiyuan8@huawei.com>
This commit is contained in:
parent
e7b5edea15
commit
0b1800aea7
@ -76,7 +76,7 @@ JANK_STATS_RS:
|
||||
JANK_STATS_VER: {type: UINT32, desc: jank range version}
|
||||
|
||||
INTERACTION_RESPONSE_LATENCY:
|
||||
__BASE: {type: STATISTIC, level: MINOR, tag: performance, desc: interaction response statistics}
|
||||
__BASE: {type: BEHAVIOR, level: MINOR, tag: performance, desc: interaction response statistics}
|
||||
APP_PID: {type: INT32, desc: app process id}
|
||||
VERSION_CODE: {type: INT32, desc: version code}
|
||||
VERSION_NAME: {type: STRING, desc: version name}
|
||||
@ -93,7 +93,7 @@ INTERACTION_RESPONSE_LATENCY:
|
||||
RESPONSE_LATENCY: {type: UINT64, desc: render time minus input time}
|
||||
|
||||
INTERACTION_COMPLETED_LATENCY:
|
||||
__BASE: {type: STATISTIC, level: MINOR, tag: performance, desc: interaction response statistics}
|
||||
__BASE: {type: BEHAVIOR, level: MINOR, tag: performance, desc: interaction response statistics}
|
||||
APP_PID: {type: INT32, desc: app process id}
|
||||
VERSION_CODE: {type: INT32, desc: version code}
|
||||
VERSION_NAME: {type: STRING, desc: version name}
|
||||
|
@ -246,7 +246,7 @@ void RSJankStats::ReportEventResponse(const JankFrames& jankFrames) const
|
||||
int64_t beginVsyncTime = ConvertTimeToSystime(info.beginVsyncTime);
|
||||
int64_t responseLatency = endTime_ - inputTime;
|
||||
HiSysEventWrite(OHOS::HiviewDFX::HiSysEvent::Domain::GRAPHIC, reportName,
|
||||
OHOS::HiviewDFX::HiSysEvent::EventType::STATISTIC, "APP_PID", info.appPid, "VERSION_CODE", info.versionCode,
|
||||
OHOS::HiviewDFX::HiSysEvent::EventType::BEHAVIOR, "APP_PID", info.appPid, "VERSION_CODE", info.versionCode,
|
||||
"VERSION_NAME", info.versionName, "BUNDLE_NAME", info.bundleName, "ABILITY_NAME", info.abilityName,
|
||||
"PROCESS_NAME", info.processName, "PAGE_URL", info.pageUrl, "SCENE_ID", info.sceneId,
|
||||
"SOURCE_TYPE", info.sourceType, "NOTE", info.note, "INPUT_TIME", static_cast<uint64_t>(inputTime),
|
||||
@ -265,7 +265,7 @@ void RSJankStats::ReportEventComplete(const JankFrames& jankFrames) const
|
||||
int64_t animationEndLatency = endVsyncTime - beginVsyncTime;
|
||||
int64_t completedLatency = endTime_ - inputTime;
|
||||
HiSysEventWrite(OHOS::HiviewDFX::HiSysEvent::Domain::GRAPHIC, reportName,
|
||||
OHOS::HiviewDFX::HiSysEvent::EventType::STATISTIC, "APP_PID", info.appPid, "VERSION_CODE", info.versionCode,
|
||||
OHOS::HiviewDFX::HiSysEvent::EventType::BEHAVIOR, "APP_PID", info.appPid, "VERSION_CODE", info.versionCode,
|
||||
"VERSION_NAME", info.versionName, "BUNDLE_NAME", info.bundleName, "ABILITY_NAME", info.abilityName,
|
||||
"PROCESS_NAME", info.processName, "PAGE_URL", info.pageUrl, "SCENE_ID", info.sceneId,
|
||||
"SOURCE_TYPE", info.sourceType, "NOTE", info.note, "INPUT_TIME", static_cast<uint64_t>(inputTime),
|
||||
|
Loading…
Reference in New Issue
Block a user