• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2 * Copyright (C) 2021-2022 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 #ifndef MEMINFO_DATA_H
16 #define MEMINFO_DATA_H
17 #include <memory>
18 #include <sys/types.h>
19 #include <string>
20 namespace OHOS {
21 namespace HiviewDFX {
22 class MemInfoData {
23 public:
24     MemInfoData();
25     ~MemInfoData();
26 
27     struct MemInfo {
28         uint64_t rss;
29         uint64_t pss;
30         uint64_t sharedClean;
31         uint64_t sharedDirty;
32         uint64_t privateClean;
33         uint64_t privateDirty;
34         uint64_t swap;
35         uint64_t swapPss;
36     };
37 
38     struct MemUsage {
39         uint64_t vss;
40         uint64_t rss;
41         uint64_t uss;
42         uint64_t pss;
43         uint64_t swapPss;
44         uint64_t gl;
45         uint64_t graph;
46         int pid;
47         std::string name;
48         std::string adjLabel;
49     };
50 
51     struct GraphicsMemory {
52         uint64_t gl;
53         uint64_t graph;
54     };
55 
56 private:
57 };
58 } // namespace HiviewDFX
59 } // namespace OHOS
60 
61 #endif