操作 旧版本 新版本 d.ts文件
新增 NA 类名:FaultLogger;
方法or属性:function query(faultType: FaultType, callback: AsyncCallback<Array<FaultLogInfo>>) : void;
@ohos.faultLogger.d.ts
新增 NA 类名:FaultLogger;
方法or属性:function query(faultType: FaultType) : Promise<Array<FaultLogInfo>>;
@ohos.faultLogger.d.ts
新增 NA 类名:hichecker;
方法or属性:function addCheckRule(rule: bigint) : void;
@ohos.hichecker.d.ts
新增 NA 类名:hichecker;
方法or属性:function removeCheckRule(rule: bigint) : void;
@ohos.hichecker.d.ts
新增 NA 类名:hichecker;
方法or属性:function containsCheckRule(rule: bigint) : boolean;
@ohos.hichecker.d.ts
新增 NA 类名:hidebug;
方法or属性:function getPrivateDirty() : bigint;
@ohos.hidebug.d.ts
新增 NA 类名:hidebug;
方法or属性:function getCpuUsage() : number;
@ohos.hidebug.d.ts
新增 NA 类名:hidebug;
方法or属性:function startJsCpuProfiling(filename : string) : void;
@ohos.hidebug.d.ts
新增 NA 类名:hidebug;
方法or属性:function stopJsCpuProfiling() : void;
@ohos.hidebug.d.ts
新增 NA 类名:hidebug;
方法or属性:function dumpJsHeapData(filename : string) : void;
@ohos.hidebug.d.ts
新增 NA 类名:hidebug;
方法or属性:function getServiceDump(serviceid : number, fd : number, args : Array<string>) : void;
@ohos.hidebug.d.ts
新增 NA 类名:hiSysEvent;
方法or属性:function write(info: SysEventInfo): Promise<void>;
@ohos.hiSysEvent.d.ts
新增 NA 类名:hiSysEvent;
方法or属性:function write(info: SysEventInfo, callback: AsyncCallback<void>): void;
@ohos.hiSysEvent.d.ts
新增 NA 类名:hiSysEvent;
方法or属性:function addWatcher(watcher: Watcher): void;
@ohos.hiSysEvent.d.ts
新增 NA 类名:hiSysEvent;
方法or属性:function removeWatcher(watcher: Watcher): void;
@ohos.hiSysEvent.d.ts
新增 NA 类名:hiSysEvent;
方法or属性:function query(queryArg: QueryArg, rules: QueryRule[], querier: Querier): void;
@ohos.hiSysEvent.d.ts
新增 NA 类名:EventType;
方法or属性:FAULT = 1
@ohos.hiSysEvent.d.ts
新增 NA 类名:EventType;
方法or属性:STATISTIC = 2
@ohos.hiSysEvent.d.ts
新增 NA 类名:EventType;
方法or属性:SECURITY = 3
@ohos.hiSysEvent.d.ts
新增 NA 类名:EventType;
方法or属性:BEHAVIOR = 4
@ohos.hiSysEvent.d.ts
新增 NA 类名:SysEventInfo;
方法or属性:domain: string;
@ohos.hiSysEvent.d.ts
新增 NA 类名:WatchRule;
方法or属性:domain: string;
@ohos.hiSysEvent.d.ts
新增 NA 类名:QueryRule;
方法or属性:domain: string;
@ohos.hiSysEvent.d.ts
新增 NA 类名:SysEventInfo;
方法or属性:name: string;
@ohos.hiSysEvent.d.ts
新增 NA 类名:WatchRule;
方法or属性:name: string;
@ohos.hiSysEvent.d.ts
新增 NA 类名:SysEventInfo;
方法or属性:eventType: EventType;
@ohos.hiSysEvent.d.ts
新增 NA 类名:SysEventInfo;
方法or属性:params: object;
@ohos.hiSysEvent.d.ts
新增 NA 类名:RuleType;
方法or属性:WHOLE_WORD = 1
@ohos.hiSysEvent.d.ts
新增 NA 类名:RuleType;
方法or属性:PREFIX = 2
@ohos.hiSysEvent.d.ts
新增 NA 类名:RuleType;
方法or属性:REGULAR = 3
@ohos.hiSysEvent.d.ts
新增 NA 类名:WatchRule;
方法or属性:tag: string;
@ohos.hiSysEvent.d.ts
新增 NA 类名:WatchRule;
方法or属性:ruleType: RuleType;
@ohos.hiSysEvent.d.ts
新增 NA 类名:Watcher;
方法or属性:rules: WatchRule[];
@ohos.hiSysEvent.d.ts
新增 NA 类名:Watcher;
方法or属性:onEvent: (info: SysEventInfo) => void;
@ohos.hiSysEvent.d.ts
新增 NA 类名:Watcher;
方法or属性:onServiceDied: () => void;
@ohos.hiSysEvent.d.ts
新增 NA 类名:QueryArg;
方法or属性:beginTime: number;
@ohos.hiSysEvent.d.ts
新增 NA 类名:QueryArg;
方法or属性:endTime: number;
@ohos.hiSysEvent.d.ts
新增 NA 类名:QueryArg;
方法or属性:maxEvents: number;
@ohos.hiSysEvent.d.ts
新增 NA 类名:QueryRule;
方法or属性:names: string[];
@ohos.hiSysEvent.d.ts
新增 NA 类名:Querier;
方法or属性:onQuery: (infos: SysEventInfo[]) => void;
@ohos.hiSysEvent.d.ts
新增 NA 类名:Querier;
方法or属性:onComplete: (reason: number, total: number) => void;
@ohos.hiSysEvent.d.ts
新增 NA 类名:hiAppEvent;
方法or属性:function configure(config: ConfigOption): void;
@ohos.hiviewdfx.hiAppEvent.d.ts
新增 NA 类名:hiAppEvent;
方法or属性:function write(info: AppEventInfo): Promise<void>;
@ohos.hiviewdfx.hiAppEvent.d.ts
新增 NA 类名:hiAppEvent;
方法or属性:function write(info: AppEventInfo, callback: AsyncCallback<void>): void;
@ohos.hiviewdfx.hiAppEvent.d.ts
新增 NA 类名:hiAppEvent;
方法or属性:function addWatcher(watcher: Watcher): AppEventPackageHolder;
@ohos.hiviewdfx.hiAppEvent.d.ts
新增 NA 类名:hiAppEvent;
方法or属性:function removeWatcher(watcher: Watcher): void;
@ohos.hiviewdfx.hiAppEvent.d.ts
新增 NA 类名:hiAppEvent;
方法or属性:function clearData(): void;
@ohos.hiviewdfx.hiAppEvent.d.ts
新增 NA 类名:EventType;
方法or属性:FAULT = 1
@ohos.hiviewdfx.hiAppEvent.d.ts
新增 NA 类名:EventType;
方法or属性:STATISTIC = 2
@ohos.hiviewdfx.hiAppEvent.d.ts
新增 NA 类名:EventType;
方法or属性:SECURITY = 3
@ohos.hiviewdfx.hiAppEvent.d.ts
新增 NA 类名:EventType;
方法or属性:BEHAVIOR = 4
@ohos.hiviewdfx.hiAppEvent.d.ts
新增 NA 类名:ConfigOption;
方法or属性:disable?: boolean;
@ohos.hiviewdfx.hiAppEvent.d.ts
新增 NA 类名:ConfigOption;
方法or属性:maxStorage?: string;
@ohos.hiviewdfx.hiAppEvent.d.ts
新增 NA 类名:AppEventInfo;
方法or属性:domain: string;
@ohos.hiviewdfx.hiAppEvent.d.ts
新增 NA 类名:AppEventFilter;
方法or属性:domain: string;
@ohos.hiviewdfx.hiAppEvent.d.ts
新增 NA 类名:AppEventInfo;
方法or属性:name: string;
@ohos.hiviewdfx.hiAppEvent.d.ts
新增 NA 类名:Watcher;
方法or属性:name: string;
@ohos.hiviewdfx.hiAppEvent.d.ts
新增 NA 类名:AppEventInfo;
方法or属性:eventType: EventType;
@ohos.hiviewdfx.hiAppEvent.d.ts
新增 NA 类名:AppEventInfo;
方法or属性:params: object;
@ohos.hiviewdfx.hiAppEvent.d.ts
新增 NA 类名:AppEventPackage;
方法or属性:packageId: number;
@ohos.hiviewdfx.hiAppEvent.d.ts
新增 NA 类名:AppEventPackage;
方法or属性:row: number;
@ohos.hiviewdfx.hiAppEvent.d.ts
新增 NA 类名:AppEventPackage;
方法or属性:size: number;
@ohos.hiviewdfx.hiAppEvent.d.ts
新增 NA 类名:AppEventPackage;
方法or属性:data: string[];
@ohos.hiviewdfx.hiAppEvent.d.ts
新增 NA 类名:AppEventPackageHolder;
方法or属性:constructor(watcherName: string);
@ohos.hiviewdfx.hiAppEvent.d.ts
新增 NA 类名:AppEventPackageHolder;
方法or属性:setSize(size: number): void;
@ohos.hiviewdfx.hiAppEvent.d.ts
新增 NA 类名:AppEventPackageHolder;
方法or属性:takeNext(): AppEventPackage;
@ohos.hiviewdfx.hiAppEvent.d.ts
新增 NA 类名:TriggerCondition;
方法or属性:row?: number;
@ohos.hiviewdfx.hiAppEvent.d.ts
新增 NA 类名:TriggerCondition;
方法or属性:size?: number;
@ohos.hiviewdfx.hiAppEvent.d.ts
新增 NA 类名:TriggerCondition;
方法or属性:timeOut?: number;
@ohos.hiviewdfx.hiAppEvent.d.ts
新增 NA 类名:AppEventFilter;
方法or属性:eventTypes?: EventType[];
@ohos.hiviewdfx.hiAppEvent.d.ts
新增 NA 类名:Watcher;
方法or属性:triggerCondition?: TriggerCondition;
@ohos.hiviewdfx.hiAppEvent.d.ts
新增 NA 类名:Watcher;
方法or属性:appEventFilters?: AppEventFilter[];
@ohos.hiviewdfx.hiAppEvent.d.ts
新增 NA 类名:Watcher;
方法or属性:onTrigger?: (curRow: number, curSize: number, holder: AppEventPackageHolder) => void;
@ohos.hiviewdfx.hiAppEvent.d.ts
废弃版本有变化 类名:bytrace;
方法or属性:declare bytrace
旧版本信息:
类名:bytrace;
方法or属性:declare bytrace
新版本信息:8
代替接口: ohos.hiTraceMeter
@ohos.bytrace.d.ts
废弃版本有变化 类名:bytrace;
方法or属性:function startTrace(name: string, taskId: number, expectedTime?: number): void;
旧版本信息:
类名:bytrace;
方法or属性:function startTrace(name: string, taskId: number, expectedTime?: number): void;
新版本信息:8
代替接口: ohos.hiTraceMeter.startTrace
@ohos.bytrace.d.ts
废弃版本有变化 类名:bytrace;
方法or属性:function finishTrace(name: string, taskId: number): void;
旧版本信息:
类名:bytrace;
方法or属性:function finishTrace(name: string, taskId: number): void;
新版本信息:8
代替接口: ohos.hiTraceMeter.finishTrace
@ohos.bytrace.d.ts
废弃版本有变化 类名:bytrace;
方法or属性:function traceByValue(name: string, count: number): void;
旧版本信息:
类名:bytrace;
方法or属性:function traceByValue(name: string, count: number): void;
新版本信息:8
代替接口: ohos.hiTraceMeter.traceByValue
@ohos.bytrace.d.ts
废弃版本有变化 类名:FaultLogger;
方法or属性:function querySelfFaultLog(faultType: FaultType, callback: AsyncCallback<Array<FaultLogInfo>>) : void;
旧版本信息:
类名:FaultLogger;
方法or属性:function querySelfFaultLog(faultType: FaultType, callback: AsyncCallback<Array<FaultLogInfo>>) : void;
新版本信息:9
代替接口: ohos.faultlogger/FaultLogger#query
@ohos.faultLogger.d.ts
废弃版本有变化 类名:FaultLogger;
方法or属性:function querySelfFaultLog(faultType: FaultType) : Promise<Array<FaultLogInfo>>;
旧版本信息:
类名:FaultLogger;
方法or属性:function querySelfFaultLog(faultType: FaultType) : Promise<Array<FaultLogInfo>>;
新版本信息:9
代替接口: ohos.faultlogger/FaultLogger#query
@ohos.faultLogger.d.ts
废弃版本有变化 类名:hiAppEvent;
方法or属性:declare hiAppEvent
旧版本信息:
类名:hiAppEvent;
方法or属性:declare hiAppEvent
新版本信息:9
代替接口: ohos.hiviewdfx.hiAppEvent
@ohos.hiAppEvent.d.ts
废弃版本有变化 类名:hiAppEvent;
方法or属性:function write(eventName: string, eventType: EventType, keyValues: object): Promise<void>;
旧版本信息:
类名:hiAppEvent;
方法or属性:function write(eventName: string, eventType: EventType, keyValues: object): Promise<void>;
新版本信息:9
代替接口: ohos.hiviewdfx.hiAppEvent
@ohos.hiAppEvent.d.ts
废弃版本有变化 类名:hiAppEvent;
方法or属性:function write(eventName: string, eventType: EventType, keyValues: object, callback: AsyncCallback<void>): void;
旧版本信息:
类名:hiAppEvent;
方法or属性:function write(eventName: string, eventType: EventType, keyValues: object, callback: AsyncCallback<void>): void;
新版本信息:9
代替接口: ohos.hiviewdfx.hiAppEvent
@ohos.hiAppEvent.d.ts
废弃版本有变化 类名:hiAppEvent;
方法or属性:function configure(config: ConfigOption): boolean;
旧版本信息:
类名:hiAppEvent;
方法or属性:function configure(config: ConfigOption): boolean;
新版本信息:9
代替接口: ohos.hiviewdfx.hiAppEvent
@ohos.hiAppEvent.d.ts
废弃版本有变化 类名:EventType;
方法or属性:enum EventType
旧版本信息:
类名:EventType;
方法or属性:enum EventType
新版本信息:9
代替接口: ohos.hiviewdfx.hiAppEvent
@ohos.hiAppEvent.d.ts
废弃版本有变化 类名:EventType;
方法or属性:FAULT = 1
旧版本信息:
类名:EventType;
方法or属性:FAULT = 1
新版本信息:9
代替接口: ohos.hiviewdfx.hiAppEvent
@ohos.hiAppEvent.d.ts
废弃版本有变化 类名:EventType;
方法or属性:STATISTIC = 2
旧版本信息:
类名:EventType;
方法or属性:STATISTIC = 2
新版本信息:9
代替接口: ohos.hiviewdfx.hiAppEvent
@ohos.hiAppEvent.d.ts
废弃版本有变化 类名:EventType;
方法or属性:SECURITY = 3
旧版本信息:
类名:EventType;
方法or属性:SECURITY = 3
新版本信息:9
代替接口: ohos.hiviewdfx.hiAppEvent
@ohos.hiAppEvent.d.ts
废弃版本有变化 类名:EventType;
方法or属性:BEHAVIOR = 4
旧版本信息:
类名:EventType;
方法or属性:BEHAVIOR = 4
新版本信息:9
代替接口: ohos.hiviewdfx.hiAppEvent
@ohos.hiAppEvent.d.ts
废弃版本有变化 类名:Event;
方法or属性:Event
旧版本信息:
类名:Event;
方法or属性:Event
新版本信息:9
代替接口: ohos.hiviewdfx.hiAppEvent
@ohos.hiAppEvent.d.ts
废弃版本有变化 类名:Param;
方法or属性:Param
旧版本信息:
类名:Param;
方法or属性:Param
新版本信息:9
代替接口: ohos.hiviewdfx.hiAppEvent
@ohos.hiAppEvent.d.ts
废弃版本有变化 类名:ConfigOption;
方法or属性:interface ConfigOption
旧版本信息:
类名:ConfigOption;
方法or属性:interface ConfigOption
新版本信息:9
代替接口: ohos.hiviewdfx.hiAppEvent
@ohos.hiAppEvent.d.ts
废弃版本有变化 类名:ConfigOption;
方法or属性:disable?: boolean;
旧版本信息:
类名:ConfigOption;
方法or属性:disable?: boolean;
新版本信息:9
代替接口: ohos.hiviewdfx.hiAppEvent
@ohos.hiAppEvent.d.ts
废弃版本有变化 类名:ConfigOption;
方法or属性:maxStorage?: string;
旧版本信息:
类名:ConfigOption;
方法or属性:maxStorage?: string;
新版本信息:9
代替接口: ohos.hiviewdfx.hiAppEvent
@ohos.hiAppEvent.d.ts
废弃版本有变化 类名:hichecker;
方法or属性:function addRule(rule: bigint) : void;
旧版本信息:
类名:hichecker;
方法or属性:function addRule(rule: bigint) : void;
新版本信息:9
代替接口: ohos.hichecker/hichecker#addCheckRule
@ohos.hichecker.d.ts
废弃版本有变化 类名:hichecker;
方法or属性:function removeRule(rule: bigint) : void;
旧版本信息:
类名:hichecker;
方法or属性:function removeRule(rule: bigint) : void;
新版本信息:9
代替接口: ohos.hichecker/hichecker#removeCheckRule
@ohos.hichecker.d.ts
废弃版本有变化 类名:hichecker;
方法or属性:function contains(rule: bigint) : boolean;
旧版本信息:
类名:hichecker;
方法or属性:function contains(rule: bigint) : boolean;
新版本信息:9
代替接口: ohos.hichecker/hichecker#containsCheckRule
@ohos.hichecker.d.ts
废弃版本有变化 类名:hidebug;
方法or属性:function startProfiling(filename : string) : void;
旧版本信息:
类名:hidebug;
方法or属性:function startProfiling(filename : string) : void;
新版本信息:9
代替接口: ohos.hidebug/hidebug.startJsCpuProfiling
@ohos.hidebug.d.ts
废弃版本有变化 类名:hidebug;
方法or属性:function stopProfiling() : void;
旧版本信息:
类名:hidebug;
方法or属性:function stopProfiling() : void;
新版本信息:9
代替接口: ohos.hidebug/hidebug.stopJsCpuProfiling
@ohos.hidebug.d.ts
废弃版本有变化 类名:hidebug;
方法or属性:function dumpHeapData(filename : string) : void;
旧版本信息:
类名:hidebug;
方法or属性:function dumpHeapData(filename : string) : void;
新版本信息:9
代替接口: ohos.hidebug/hidebug.dumpJsHeapData
@ohos.hidebug.d.ts
type有变化 类名:FaultLogInfo;
方法or属性:pid: number;
旧版本信息:
类名:FaultLogInfo;
方法or属性:pid: number;
新版本信息:number
@ohos.faultLogger.d.ts
type有变化 类名:FaultLogInfo;
方法or属性:uid: number;
旧版本信息:
类名:FaultLogInfo;
方法or属性:uid: number;
新版本信息:number
@ohos.faultLogger.d.ts
type有变化 类名:FaultLogInfo;
方法or属性:type: FaultType;
旧版本信息:
类名:FaultLogInfo;
方法or属性:type: FaultType;
新版本信息:FaultType
@ohos.faultLogger.d.ts
type有变化 类名:FaultLogInfo;
方法or属性:timestamp: number;
旧版本信息:
类名:FaultLogInfo;
方法or属性:timestamp: number;
新版本信息:number
@ohos.faultLogger.d.ts
type有变化 类名:FaultLogInfo;
方法or属性:reason: string;
旧版本信息:
类名:FaultLogInfo;
方法or属性:reason: string;
新版本信息:string
@ohos.faultLogger.d.ts
type有变化 类名:FaultLogInfo;
方法or属性:module: string;
旧版本信息:
类名:FaultLogInfo;
方法or属性:module: string;
新版本信息:string
@ohos.faultLogger.d.ts
type有变化 类名:FaultLogInfo;
方法or属性:summary: string;
旧版本信息:
类名:FaultLogInfo;
方法or属性:summary: string;
新版本信息:string
@ohos.faultLogger.d.ts
type有变化 类名:FaultLogInfo;
方法or属性:fullLog: string;
旧版本信息:
类名:FaultLogInfo;
方法or属性:fullLog: string;
新版本信息:string
@ohos.faultLogger.d.ts
函数有变化 类名:hiTraceChain;
方法or属性:function begin(name: string, flags: number = HiTraceFlag.DEFAULT): HiTraceId;
类名:hiTraceChain;
方法or属性:function begin(name: string, flags?: number): HiTraceId;
@ohos.hiTraceChain.d.ts