mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-11-27 01:11:35 +00:00
getServiceDump接口优化
Signed-off-by: jiangyuan0000 <jiangyuan29@huawei.com>
This commit is contained in:
parent
3d16d598c3
commit
a68634557a
62
api/@ohos.hidebug.d.ts
vendored
62
api/@ohos.hidebug.d.ts
vendored
@ -89,11 +89,13 @@ declare namespace hidebug {
|
||||
* Start CPU Profiling.
|
||||
* The input parameter is a user-defined file name, excluding the file suffix.
|
||||
* The generated file is in the files folder under the application directory.
|
||||
* such as "/data/accounts/account_0/appdata/[package name]/files/cpuprofiler-xxx.json"
|
||||
* Such as "/data/accounts/account_0/appdata/[package name]/files/cpuprofiler-xxx.json"
|
||||
*
|
||||
* @param filename Indicates the user-defined file name, excluding the file suffix.
|
||||
* @return -
|
||||
* @since 8
|
||||
* @deprecated since 9
|
||||
* @useinstead ohos.hidebug/hidebug.startJsCpuProfiling
|
||||
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
|
||||
*/
|
||||
function startProfiling(filename : string) : void;
|
||||
@ -105,6 +107,8 @@ declare namespace hidebug {
|
||||
* @param -
|
||||
* @return -
|
||||
* @since 8
|
||||
* @deprecated since 9
|
||||
* @useinstead ohos.hidebug/hidebug.stopJsCpuProfiling
|
||||
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
|
||||
*/
|
||||
function stopProfiling() : void;
|
||||
@ -113,24 +117,68 @@ declare namespace hidebug {
|
||||
* Dump JS Virtual Machine Heap Snapshot.
|
||||
* The input parameter is a user-defined file name, excluding the file suffix.
|
||||
* The generated file is in the files folder under the application directory.
|
||||
* such as "/data/accounts/account_0/appdata/[package name]/files/xxx.heapsnapshot"
|
||||
* Such as "/data/accounts/account_0/appdata/[package name]/files/xxx.heapsnapshot"
|
||||
*
|
||||
* @param filename Indicates the user-defined file name, excluding the file suffix.
|
||||
* @return -
|
||||
* @since 8
|
||||
* @deprecated since 9
|
||||
* @useinstead ohos.hidebug/hidebug.dumpJsHeapData
|
||||
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
|
||||
*/
|
||||
function dumpHeapData(filename : string) : void;
|
||||
|
||||
/**
|
||||
* Get a debugging dump of a system service by service id.
|
||||
* Not for use by third-party applications for permission.
|
||||
* Start CPU Profiling.
|
||||
* The input parameter is a user-defined file name, excluding the file suffix.
|
||||
* The generated file is in the files folder under the application directory.
|
||||
*
|
||||
* @param serviceid Indicates the id of the service ability.
|
||||
* @return - sa dumped file name return.
|
||||
* @param filename Indicates the user-defined file name, excluding the file suffix.
|
||||
* @throws {BusinessError} 401 - the parameter check failed
|
||||
* @return -
|
||||
* @since 9
|
||||
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
|
||||
*/
|
||||
function getServiceDump(serviceid : number) : string;
|
||||
function startJsCpuProfiling(filename : string) : void;
|
||||
|
||||
/**
|
||||
* Stop CPU Profiling.
|
||||
* It takes effect only when the CPU profiler is turned on
|
||||
*
|
||||
* @param -
|
||||
* @return -
|
||||
* @since 9
|
||||
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
|
||||
*/
|
||||
function stopJsCpuProfiling() : void;
|
||||
|
||||
/**
|
||||
* Dump JS Virtual Machine Heap Snapshot.
|
||||
* The input parameter is a user-defined file name, excluding the file suffix.
|
||||
* The generated file is in the files folder under the application directory.
|
||||
*
|
||||
* @param filename Indicates the user-defined file name, excluding the file suffix.
|
||||
* @throws {BusinessError} 401 - the parameter check failed
|
||||
* @return -
|
||||
* @since 9
|
||||
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
|
||||
*/
|
||||
function dumpJsHeapData(filename : string) : void;
|
||||
|
||||
/**
|
||||
* Get a debugging dump of a system service by service id.
|
||||
* It need dump permission.
|
||||
*
|
||||
* @param serviceid Indicates the id of the service ability.
|
||||
* @param fd The file descriptor.
|
||||
* @param args The args list of the system ability dump interface.
|
||||
* @throws {BusinessError} 401 - the parameter check failed
|
||||
* @throws {BusinessError} 11400101 - the service id is invalid
|
||||
* @return -
|
||||
* @permission ohos.permission.DUMP
|
||||
* @since 9
|
||||
* @syscap SystemCapability.HiviewDFX.HiProfiler.HiDebug
|
||||
*/
|
||||
function getServiceDump(serviceid : number, fd : number, args : Array<string>) : void;
|
||||
}
|
||||
export default hidebug;
|
||||
|
Loading…
Reference in New Issue
Block a user