1/* 2 * Copyright (c) 2025 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 16package OHOS.HiviewDFX; 17 18sequenceable OHOS.HiviewDFX.HiviewFileInfo; 19sequenceable OHOS.HiviewDFX.AppCallerParcelable; 20sequenceable OHOS.HiviewDFX.MemoryCallerParcelable; 21 22interface IHiviewServiceAbility { 23 [ipcoutcapacity 480] void ListFiles([in] String logType, [out] HiviewFileInfo[] fileInfos); 24 void Copy([in] String logType, [in] String logName, [in] String dest); 25 void Move([in] String logType, [in] String logName, [in] String dest); 26 void Remove([in] String logType, [in] String logName); 27 void OpenSnapshotTrace([in] String[] tagGroups, [out] int errNo, [out] int ret); 28 void DumpSnapshotTrace([in] int client, [out] int errNo, [out] String[] files); 29 void OpenRecordingTrace([in] String tags, [out] int errNo, [out] int ret); 30 void RecordingTraceOn([out] int errNo, [out] int ret); 31 void RecordingTraceOff([out] int errNo, [out] String[] files); 32 void CloseTrace([out] int errNo, [out] int ret); 33 void CaptureDurationTrace([in] AppCallerParcelable appCaller, [out] int errNo, [out] int ret); 34 void GetSysCpuUsage([out] int errNo, [out] double ret); 35 void SetAppResourceLimit([in] MemoryCallerParcelable memoryCallerParcelable, [out] int errNo, [out] int ret); 36 void GetGraphicUsage([out] int errNo, [out] int ret); 37 void SetSplitMemoryValue([in] MemoryCallerParcelable[] memCallerParcelableList, [out] int errNo, [out] int ret); 38}