harmony(鸿蒙)DFX子系统JS API变更

2022-08-09 浏览 (761)

DFX子系统JS API变更

OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,DFX子系统的API变更如下:

接口变更

模块名类名方法/属性/枚举/常量变更类型
ohos.hiTraceMeterhiTraceMetertraceByValue(name: string, count: number): void;新增
ohos.hiTraceMeterhiTraceMeterfinishTrace(name: string, taskId: number): void;新增
ohos.hiTraceMeterhiTraceMeterstartTrace(name: string, taskId: number): void;新增
ohos.hiTraceChainhiTraceChainenableFlag(id: HiTraceId, flag: HiTraceFlag): void;新增
ohos.hiTraceChainhiTraceChainisFlagEnabled(id: HiTraceId, flag: HiTraceFlag): boolean;新增
ohos.hiTraceChainhiTraceChainisValid(id: HiTraceId): boolean;新增
ohos.hiTraceChainhiTraceChaintracepoint(mode: HiTraceCommunicationMode, type: HiTraceTracepointType, id: HiTraceId, msg?: string): void;新增
ohos.hiTraceChainhiTraceChaincreateSpan(): HiTraceId;新增
ohos.hiTraceChainhiTraceChainclearId(): void;新增
ohos.hiTraceChainhiTraceChainsetId(id: HiTraceId): void;新增
ohos.hiTraceChainhiTraceChaingetId(): HiTraceId;新增
ohos.hiTraceChainhiTraceChainend(id: HiTraceId): void;新增
ohos.hiTraceChainhiTraceChainbegin(name: string, flags: number = HiTraceFlag.DEFAULT): HiTraceId;新增
ohos.hiTraceChainHiTraceIdflags?: number;新增
ohos.hiTraceChainHiTraceIdparentSpanId?: number;新增
ohos.hiTraceChainHiTraceIdspanId?: number;新增
ohos.hiTraceChainHiTraceIdchainId: bigint;新增
ohos.hiTraceChainHiTraceCommunicationModeDEVICE = 3新增
ohos.hiTraceChainHiTraceCommunicationModePROCESS = 2新增
ohos.hiTraceChainHiTraceCommunicationModeTHREAD = 1新增
ohos.hiTraceChainHiTraceCommunicationModeDEFAULT = 0新增
ohos.hiTraceChainHiTraceTracepointTypeGENERAL = 4新增
ohos.hiTraceChainHiTraceTracepointTypeSR = 3新增
ohos.hiTraceChainHiTraceTracepointTypeSS = 2新增
ohos.hiTraceChainHiTraceTracepointTypeCR = 1新增
ohos.hiTraceChainHiTraceTracepointTypeCS = 0新增
ohos.hiTraceChainHiTraceFlagD2D_TP_INFO = 1 << 6新增
ohos.hiTraceChainHiTraceFlagFAILURE_TRIGGER = 1 << 5新增
ohos.hiTraceChainHiTraceFlagDISABLE_LOG = 1 << 4新增
ohos.hiTraceChainHiTraceFlagNO_BE_INFO = 1 << 3新增
ohos.hiTraceChainHiTraceFlagTP_INFO = 1 << 2新增
ohos.hiTraceChainHiTraceFlagDONOT_CREATE_SPAN = 1 << 1新增
ohos.hiTraceChainHiTraceFlagINCLUDE_ASYNC = 1新增
ohos.hiTraceChainHiTraceFlagDEFAULT = 0新增
ohos.hilogLogLevelFATAL = 7新增
ohos.hilogLogLevelERROR = 6新增
ohos.hilogLogLevelWARN = 5新增
ohos.hilogLogLevelINFO = 4新增
ohos.hilogLogLevelDEBUG = 3新增
ohos.hiloghilogisLoggable(domain: number, tag: string, level: LogLevel) : boolean;新增
ohos.hiloghilogfatal(domain: number, tag: string, format: string, ...args: any[]) : void;新增
ohos.hiloghilogerror(domain: number, tag: string, format: string, ...args: any[]) : void;新增
ohos.hiloghilogwarn(domain: number, tag: string, format: string, ...args: any[]) : void;新增
ohos.hiloghiloginfo(domain: number, tag: string, format: string, ...args: any[]) : void;新增
ohos.hiloghilogdebug(domain: number, tag: string, format: string, ...args: any[]) : void;新增
ohos.hidebughidebugdumpHeapData(filename : string) : void;新增
ohos.hidebughidebugstopProfiling() : void;新增
ohos.hidebughidebugstartProfiling(filename : string) : void;新增
ohos.hidebughidebuggetSharedDirty() : bigint;新增
ohos.hidebughidebuggetPss() : bigint;新增
ohos.hidebughidebuggetNativeHeapFreeSize() : bigint;新增
ohos.hidebughidebuggetNativeHeapAllocatedSize() : bigint;新增
ohos.hidebughidebuggetNativeHeapSize() : bigint;新增
ohos.hicheckerhicheckercontains(rule: bigint) : boolean;新增
ohos.hicheckerhicheckergetRule() : bigint;新增
ohos.hicheckerhicheckerremoveRule(rule: bigint) : void;新增
ohos.hicheckerhicheckeraddRule(rule: bigint) : void;新增
ohos.hicheckerhicheckerconst RULE_CHECK_ABILITY_CONNECTION_LEAK: 8589934592n;新增
ohos.hicheckerhicheckerconst RULE_THREAD_CHECK_SLOW_PROCESS: 1n;新增
ohos.hicheckerhicheckerconst RULE_CAUTION_TRIGGER_CRASH: 4611686018427387904n;新增
ohos.hicheckerhicheckerconst RULE_CAUTION_PRINT_LOG: 9223372036854775808n;新增
ohos.faultLoggerFaultLogInfofullLog: string;新增
ohos.faultLoggerFaultLogInfosummary: string;新增
ohos.faultLoggerFaultLogInfomodule: string;新增
ohos.faultLoggerFaultLogInforeason: string;新增
ohos.faultLoggerFaultLogInfotimestamp: number;新增
ohos.faultLoggerFaultLogInfotype: FaultType;新增
ohos.faultLoggerFaultLogInfouid: number;新增
ohos.faultLoggerFaultLogInfopid: number;新增
ohos.faultLoggerFaultLoggerquerySelfFaultLog(faultType: FaultType, callback: AsyncCallback<Array<FaultLogInfo>>) : void;
querySelfFaultLog(faultType: FaultType) : Promise<Array<FaultLogInfo>>;
新增
ohos.faultLoggerFaultTypeAPP_FREEZE = 4新增
ohos.faultLoggerFaultTypeJS_CRASH = 3新增
ohos.faultLoggerFaultTypeCPP_CRASH = 2新增
ohos.faultLoggerFaultTypeNO_SPECIFIC = 0新增

你可能感兴趣的鸿蒙文章

harmony(鸿蒙)Readme

harmony(鸿蒙)3.1 release相对于3.1 beta变更详细说明

harmony(鸿蒙)元能力子系统JS API变更

harmony(鸿蒙)元能力子系统JS API变更

harmony(鸿蒙)无障碍子系统JS API变更

harmony(鸿蒙)帐号子系统JS API变更

harmony(鸿蒙)ArkUI子系统JS API变更

harmony(鸿蒙)电源服务子系统JS API变更

harmony(鸿蒙)包管理子系统JS API变更

harmony(鸿蒙)包管理子系统JS API变更

  • 所属分类: 后端技术
  • 本文标签: 软件 鸿蒙
  • 版权声明: 本文链接 https://seaxiang.com/blog/ce28efe5a0c24642814cb8cb230ecdf1