diff --git a/api/@ohos.bytrace.d.ts b/api/@ohos.bytrace.d.ts index b2ee906edc823f2dd8d229ec3af0714dd7327fad..f690b9d2975814f7aab880c213767410b9e4b486 100644 --- a/api/@ohos.bytrace.d.ts +++ b/api/@ohos.bytrace.d.ts @@ -34,7 +34,8 @@ *
Each {@code startTrace} matches one {@code finishTrace}, and they must have the same name * and taskId. * - * @deprecated + * @deprecated since 8 + * @useinstead ohos.hiTraceMeter * @since 7 * @syscap SystemCapability.HiviewDFX.HiTrace */ @@ -47,7 +48,8 @@ declare namespace bytrace { * is specified by {@code name}, and the taskId is used to distinguish the tasks. It must be followed by * {@link #finishTrace}, the name and taskId need to be the same. * - * @deprecated + * @deprecated since 8 + * @useinstead ohos.hiTraceMeter.startTrace * @since 7 * @syscap SystemCapability.HiviewDFX.HiTrace * @param name Indicates the task name. @@ -62,7 +64,8 @@ declare namespace bytrace { * This method is invoked at the end of a transaction to indicate that a task has ended, whose name * is specified by {@code name}. This method must be invoked after the the startTrace. * - * @deprecated + * @deprecated since 8 + * @useinstead ohos.hiTraceMeter.finishTrace * @since 7 * @syscap SystemCapability.HiviewDFX.HiTrace * @param name Indicates the task name. It must be the same with the {@code name} of startTrace. @@ -74,7 +77,8 @@ declare namespace bytrace { /** * Records a trace for generating a count, such as clock pulse and the number of layers. * - * @deprecated + * @deprecated since 8 + * @useinstead ohos.hiTraceMeter.traceByValue * @since 7 * @syscap SystemCapability.HiviewDFX.HiTrace * @param name Indicates the name used to identify the count.