• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2023 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 #include "io_collector.h"
16 
17 namespace OHOS {
18 namespace HiviewDFX {
19 namespace UCollectUtil {
20 class IoCollectorImpl : public IoCollector {
21 public:
22     IoCollectorImpl() = default;
23     virtual ~IoCollectorImpl() = default;
24 
25 public:
26     virtual CollectResult<ProcessIo> CollectProcessIo(int32_t pid) override;
27 };
28 
Create()29 std::shared_ptr<IoCollector> IoCollector::Create()
30 {
31     return std::make_shared<IoCollectorImpl>();
32 }
33 
CollectProcessIo(int32_t pid)34 CollectResult<ProcessIo> IoCollectorImpl::CollectProcessIo(int32_t pid)
35 {
36     CollectResult<ProcessIo> result;
37     return result;
38 }
39 } // UCollectUtil
40 } // HiViewDFX
41 } // OHOS