• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2025 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #include "base/perfmonitor/perf_interfaces.h"
17 
18 namespace OHOS::Ace {
19 
SetScrollState(bool state)20 void PerfInterfaces::SetScrollState(bool state)
21 {
22 }
23 
RecordInputEvent(PerfActionType type,PerfSourceType sourceType,int64_t time)24 void PerfInterfaces::RecordInputEvent(PerfActionType type, PerfSourceType sourceType, int64_t time)
25 {
26 }
27 
GetInputTime(const std::string & sceneId,PerfActionType type,const std::string & note)28 int64_t PerfInterfaces::GetInputTime(const std::string& sceneId, PerfActionType type, const std::string& note)
29 {
30     return 0;
31 }
32 
NotifyAppJankStatsBegin()33 void PerfInterfaces::NotifyAppJankStatsBegin()
34 {
35 }
36 
NotifyAppJankStatsEnd()37 void PerfInterfaces::NotifyAppJankStatsEnd()
38 {
39 }
40 
SetPageUrl(const std::string & pageUrl)41 void PerfInterfaces::SetPageUrl(const std::string& pageUrl)
42 {
43 }
44 
GetPageUrl()45 std::string PerfInterfaces::GetPageUrl()
46 {
47     return {};
48 }
49 
SetPageName(const std::string & pageName)50 void PerfInterfaces::SetPageName(const std::string& pageName)
51 {
52 }
53 
GetPageName()54 std::string PerfInterfaces::GetPageName()
55 {
56     return {};
57 }
58 
SetAppForeground(bool isShow)59 void PerfInterfaces::SetAppForeground(bool isShow)
60 {
61 }
62 
SetAppStartStatus()63 void PerfInterfaces::SetAppStartStatus()
64 {
65 }
66 
IsScrollJank(const std::string & sceneId)67 bool PerfInterfaces::IsScrollJank(const std::string& sceneId)
68 {
69     return false;
70 }
71 
Start(const std::string & sceneId,PerfActionType type,const std::string & note)72 void PerfInterfaces::Start(const std::string& sceneId, PerfActionType type, const std::string& note)
73 {
74 }
75 
End(const std::string & sceneId,bool isRsRender)76 void PerfInterfaces::End(const std::string& sceneId, bool isRsRender)
77 {
78 }
79 
StartCommercial(const std::string & sceneId,PerfActionType type,const std::string & note)80 void PerfInterfaces::StartCommercial(const std::string& sceneId, PerfActionType type, const std::string& note)
81 {
82 }
83 
EndCommercial(const std::string & sceneId,bool isRsRender)84 void PerfInterfaces::EndCommercial(const std::string& sceneId, bool isRsRender)
85 {
86 }
87 
SetFrameTime(int64_t vsyncTime,int64_t duration,double jank,const std::string & windowName)88 void PerfInterfaces::SetFrameTime(int64_t vsyncTime, int64_t duration, double jank, const std::string& windowName)
89 {
90 }
91 
SetSubHealthInfo(const std::string & info,const std::string & reason,const int32_t duration)92 void PerfInterfaces::SetSubHealthInfo(const std::string& info, const std::string& reason, const int32_t duration)
93 {
94 }
95 
ReportJankFrameApp(double jank,int32_t jankThreshold)96 void PerfInterfaces::ReportJankFrameApp(double jank, int32_t jankThreshold)
97 {
98 }
99 
ReportPageShowMsg(const std::string & pageUrl,const std::string & bundleName,const std::string & pageName)100 void PerfInterfaces::ReportPageShowMsg(const std::string& pageUrl, const std::string& bundleName,
101     const std::string& pageName)
102 {
103 }
104 
SetApplicationInfo()105 void PerfInterfaces::SetApplicationInfo()
106 {
107 }
108 
109 } // namespace OHOS::Ace
110