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 16import hidebug from '@ohos.hidebug'; 17 18export const getTotalMem: () => number; 19export const getFreeMem: () => number; 20export const getAvailableMem: () => number; 21export const getPss: () => number; 22export const getVss: () => number; 23export const getRss: () => number; 24export const getSharedDirty: () => number; 25export const getPrivateDirty: () => number; 26export const getSharedClean: () => number; 27export const getPrivateClean: () => number; 28 29export const getRssLimit: () => number; 30export const getVssLimit: () => number; 31 32export const getSysCpuUsage: () => number; 33export const getAppThreadCpuUsage: () => hidebug.ThreadCpuUsage[]; 34export const getAppCpuUsage: () => number; 35 36export const startAppTraceCapture: (a: number, b: number, c: number) => number; 37export const getAppTraceCaptureFile: (a: number, b: number, c: number) => string; 38export const startAppTraceCaptureTag: () => number; 39export const stopAppTraceCapture: () => number;