From 56713fd38b24a5f35eada55f70a43960ce58d3eb Mon Sep 17 00:00:00 2001 From: wenlong12 Date: Wed, 11 May 2022 16:11:40 +0800 Subject: [PATCH] replace bytrace key to hitrace_meter Signed-off-by: wenlong12 Signed-off-by: wenlong12 --- ipc/native/c/adapter/bytrace/source/rpc_bytrace.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ipc/native/c/adapter/bytrace/source/rpc_bytrace.c b/ipc/native/c/adapter/bytrace/source/rpc_bytrace.c index b086611..107dc8a 100644 --- a/ipc/native/c/adapter/bytrace/source/rpc_bytrace.c +++ b/ipc/native/c/adapter/bytrace/source/rpc_bytrace.c @@ -17,18 +17,18 @@ #include #include "rpc_bytrace_inner.h" -static const uint64_t BYTRACE_TAG_RPC = (1ULL << 46); // RPC and IPC tag. +static const uint64_t HITRACE_TAG_RPC = (1ULL << 46); // RPC and IPC tag. void RpcStartTrace(const char *value) { if (value == NULL) { return; } - RpcStartTraceInner(BYTRACE_TAG_RPC, value); + RpcStartTraceInner(HITRACE_TAG_RPC, value); } void RpcFinishTrace(void) { - RpcFinishTraceInner(BYTRACE_TAG_RPC); + RpcFinishTraceInner(HITRACE_TAG_RPC); } void RpcStartAsyncTrace(const char *value, int32_t traceId) @@ -36,7 +36,7 @@ void RpcStartAsyncTrace(const char *value, int32_t traceId) if (value == NULL) { return; } - RpcStartAsyncTraceInner(BYTRACE_TAG_RPC, value, traceId); + RpcStartAsyncTraceInner(HITRACE_TAG_RPC, value, traceId); } void RpcFinishAsyncTrace(const char *value, int32_t traceId) @@ -44,7 +44,7 @@ void RpcFinishAsyncTrace(const char *value, int32_t traceId) if (value == NULL) { return; } - RpcFinishAsyncTraceInner(BYTRACE_TAG_RPC, value, traceId); + RpcFinishAsyncTraceInner(HITRACE_TAG_RPC, value, traceId); } void RpcMiddleTrace(const char *beforeValue, const char *afterValue) @@ -52,5 +52,5 @@ void RpcMiddleTrace(const char *beforeValue, const char *afterValue) if (beforeValue == NULL || afterValue == NULL) { return; } - RpcMiddleTraceInner(BYTRACE_TAG_RPC, beforeValue, afterValue); + RpcMiddleTraceInner(HITRACE_TAG_RPC, beforeValue, afterValue); } \ No newline at end of file -- GitLab