• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) Huawei Technologies Co., Ltd. 2023. All rights reserved.
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 #ifndef NATIVE_MEMORY_PROFILER_SA_PROXY_H
17 #define NATIVE_MEMORY_PROFILER_SA_PROXY_H
18 
19 #include "iremote_object.h"
20 #include "iremote_proxy.h"
21 #include "system_ability.h"
22 
23 #include "i_native_memory_profiler_sa.h"
24 #include "native_memory_profiler_sa_interface_code.h"
25 
26 namespace OHOS::Developtools::NativeDaemon {
27 class NativeMemoryProfilerSaProxy : public IRemoteProxy<INativeMemoryProfilerSa> {
28 public:
29     explicit NativeMemoryProfilerSaProxy(const sptr<IRemoteObject> &impl);
30     virtual ~NativeMemoryProfilerSaProxy() = default;
31 
32     int32_t Start(std::shared_ptr<NativeMemoryProfilerSaConfig>& config) override;
33     int32_t Stop(uint32_t pid) override;
34     int32_t Stop(const std::string& name) override;
35     int32_t DumpData(uint32_t fd, std::shared_ptr<NativeMemoryProfilerSaConfig>& config) override;
36     int32_t Start(std::shared_ptr<NativeMemoryProfilerSaConfig>& config, std::string& replyStats) override;
Start(std::shared_ptr<NativeMemoryProfilerSaConfig> & config,MessageParcel & reply)37     int32_t Start(std::shared_ptr<NativeMemoryProfilerSaConfig>& config, MessageParcel &reply) override { return 0; }
38 };
39 } // namespace OHOS::Developtools::NativeDaemon
40 
41 #endif // NATIVE_MEMORY_PROFILER_SA_PROXY_H