提交 a07587ea 编写于 作者: X xuyong

hisysevent及hitrace部件化名称整改

Signed-off-by: Nxuyong <xuyong59@huawei.com>
上级 bc24746b
......@@ -149,11 +149,11 @@ The following provides an example of how to use C++ APIs of **HiSysEvent**.
```
2. Configure the **BUILD.gn** file.
In the **BUILD.gn** file, add the **libhisysevent** and **libhisyseventmanager** libraries that depend on the **hisysevent_native** component.
In the **BUILD.gn** file, add the **libhisysevent** and **libhisyseventmanager** libraries that depend on the **hisysevent** component.
```
external_deps = [
"hisysevent_native:libhisysevent",
"hisysevent_native:libhisyseventmanager",
"hisysevent:libhisysevent",
"hisysevent:libhisyseventmanager",
]
```
......@@ -257,7 +257,7 @@ Assume that a service module needs to trigger event logging during application s
1. Add the HiSysEvent component dependency to the **BUILD.gn** file of the service module.
```c++
external_deps = [ "hisysevent_native:libhisysevent" ]
external_deps = [ "hisysevent:libhisysevent" ]
```
2. In the application startup function **StartAbility()** of the service module, call the event logging API with event parameters passed in.
......@@ -280,7 +280,7 @@ Assume that a service module needs to trigger event logging during application s
1. Add the HiSysEvent component dependency to the **BUILD.gn** file of the service module.
```c++
external_deps = [ "hisysevent_native:libhisysevent" ]
external_deps = [ "hisysevent:libhisysevent" ]
```
2. In the application startup function **StartAbility()** of the service module, call the event logging API with event parameters passed in.
......
......@@ -252,12 +252,12 @@ The return values of the HiSysEventRecord APIs are described as follows:
Assume that you need to query all **PLUGIN_LOAD** events that are generated for the **HIVIEWDFX** domain until the current time on a service module. The development procedure is as follows:
1. Add the **libhisysevent** and **libhisyseventmanager** dependencies of the **hisysevent_native** component to **BUILD.gn** of the service module.
1. Add the **libhisysevent** and **libhisyseventmanager** dependencies of the **hisysevent** component to **BUILD.gn** of the service module.
```c++
external_deps = [
"hisysevent_native:libhisysevent",
"hisysevent_native:libhisyseventmanager",
"hisysevent:libhisysevent",
"hisysevent:libhisyseventmanager",
]
```
......@@ -320,10 +320,10 @@ Assume that you need to query all **PLUGIN_LOAD** events that are generated for
Assume that you need to query all **PLUGIN_LOAD** events that are generated for the **HIVIEWDFX** domain until the current time on a service module. The development procedure is as follows:
1. Add the **libhisyseventmanager** dependency of the **hisysevent_native** component to the **BUILD.gn** file of the service module.
1. Add the **libhisyseventmanager** dependency of the **hisysevent** component to the **BUILD.gn** file of the service module.
```c++
external_deps = [ "hisysevent_native:libhisyseventmanager" ]
external_deps = [ "hisysevent:libhisyseventmanager" ]
// for strcpy_s
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
......
......@@ -208,7 +208,7 @@ The process is as follows:
2. Configure compilation information. Specifically, add the subsystem SDK dependency to **BUILD.gn**.
```
external_deps = [ "hiviewdfx:libhitracechain" ]
external_deps = [ "hitrace:libhitracechain" ]
```
......@@ -232,5 +232,5 @@ The process is as follows:
2. Configure compilation information. Specifically, add the subsystem SDK dependency to **BUILD.gn**.
```
external_deps = [ "hiviewdfx:libhitracechain" ]
external_deps = [ "hitrace:libhitracechain" ]
```
......@@ -149,11 +149,11 @@ HiSysEvent提供了跨进程订阅机制,开发者可以通过注册订阅接
```
2. 编译配置
在BUILD.gn编译文件中,需要添加依赖hisysevent_native组件的libhisysevent及libhisyseventmanager库:
在BUILD.gn编译文件中,需要添加依赖hisysevent组件的libhisysevent及libhisyseventmanager库:
```
external_deps = [
"hisysevent_native:libhisysevent",
"hisysevent_native:libhisyseventmanager",
"hisysevent:libhisysevent",
"hisysevent:libhisyseventmanager",
]
```
......@@ -257,7 +257,7 @@ kernel事件打点开发能力如下:具体API详见接口文件(/kernel/lin
1. 首先,需要在业务模块的在BUILD.gn里增加HiSysEvent部件依赖。
```c++
external_deps = [ "hisysevent_native:libhisysevent" ]
external_deps = [ "hisysevent:libhisysevent" ]
```
2. 在业务模块的应用启动函数StartAbility()中,调用打点接口并传入对应事件参数。
......@@ -280,7 +280,7 @@ kernel事件打点开发能力如下:具体API详见接口文件(/kernel/lin
1. 首先,需要在业务模块的在BUILD.gn里增加HiSysEvent部件依赖。
```c++
external_deps = [ "hisysevent_native:libhisysevent" ]
external_deps = [ "hisysevent:libhisysevent" ]
```
2. 在业务模块的应用启动函数StartAbility()中,调用打点接口并传入对应事件参数。
......
......@@ -252,12 +252,12 @@ HiSysEventRecord解析接口的返回值说明如下:
假设业务模块需要查询截止至当前时间、事件领域为HIVIEWDFX、事件名称为PLUGIN_LOAD的所有事件,其完整使用示例如下所示:
1. 首先,需要在业务模块的在BUILD.gn里增加hisysevent_native部件的libhisysevent及libhisyseventmanager依赖。
1. 首先,需要在业务模块的在BUILD.gn里增加hisysevent部件的libhisysevent及libhisyseventmanager依赖。
```c++
external_deps = [
"hisysevent_native:libhisysevent",
"hisysevent_native:libhisyseventmanager",
"hisysevent:libhisysevent",
"hisysevent:libhisyseventmanager",
]
```
......@@ -320,10 +320,10 @@ HiSysEventRecord解析接口的返回值说明如下:
假设业务模块需要查询截止至当前时间、事件领域为HIVIEWDFX、事件名称为PLUGIN_LOAD的所有事件,其完整使用示例如下所示:
1. 首先,需要在业务模块的在BUILD.gn里增加hisysevent_native部件的libhisyseventmanager依赖。
1. 首先,需要在业务模块的在BUILD.gn里增加hisysevent部件的libhisyseventmanager依赖。
```c++
external_deps = [ "hisysevent_native:libhisyseventmanager" ]
external_deps = [ "hisysevent:libhisyseventmanager" ]
// for strcpy_s
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
......
......@@ -208,7 +208,7 @@ OpenHarmony系统内置部分通信机制(如ZIDL)已经支持传递traceid
2. 编译设置,在BUILD.gn里增加子系统SDK依赖:
```
external_deps = [ "hiviewdfx:libhitracechain" ]
external_deps = [ "hitrace:libhitracechain" ]
```
......@@ -232,5 +232,5 @@ OpenHarmony系统内置部分通信机制(如ZIDL)已经支持传递traceid
2. 编译设置,在BUILD.gn里增加子系统SDK依赖:
```
external_deps = [ "hiviewdfx:libhitracechain" ]
external_deps = [ "hitrace:libhitracechain" ]
```
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册