1/* 2 * Copyright (c) 2021 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/** 17 * @name This class saves memory map information about an application. 18 * All results are in kB. 19 * @since 7 20 * @SysCap SystemCapability.Appexecfwk 21 * @import import MemoryMapInfo from 'app/memoryMapInfo' 22 * @permission N/A 23 * @devices phone, tablet, tv, wearable, car 24 * @systemapi hide this for inner system use 25 */ 26export interface MemoryMapInfo { 27 /** 28 * @default The pss page size for virtual machine heap 29 */ 30 vmPss: number; 31 /** 32 * @default The private dirty page size for virtual machine heap 33 */ 34 vmPrivateDirty: number; 35 /** 36 * @default The shared dirty page size for virtual machine heap 37 */ 38 vmSharedDirty: number; 39 /** 40 * @default The pss page size for native heap 41 */ 42 nativePss: number; 43 /** 44 * @default The private dirty page size for native heap 45 */ 46 nativePrivateDirty: number; 47 /** 48 * @default The shared dirty page size for native heap 49 */ 50 nativeSharedDirty: number; 51 /** 52 * @default The pss page size for others 53 */ 54 otherPss: number; 55 /** 56 * @default The private dirty page size for others 57 */ 58 otherPrivateDirty: number; 59 /** 60 * @default The shared dirty page size for others 61 */ 62 otherSharedDirty: number; 63} 64