“71f2c3ba32acb877ae39abd4adf684b76d18b7d3”上不存在“src/bsd/doc/man/jrunscript.1”
提交 825b34d9 编写于 作者: S shawn_he

update docs

Signed-off-by: Nshawn_he <shawn.he@huawei.com>
上级 177063cf
# HiAppEvent # HiAppEvent
This module provides the application event logging functions, such as writing application events to the event file and managing the event logging configuration.
> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE**<br> > ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE**<br>
> The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version. > The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version.
......
# Distributed Call Chain Tracing # Distributed Call Chain Tracing
This module implements call chain tracing throughout a service process. It provides functions such as starting and stopping call chain tracing and configuring trace points.
> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE**<br> > ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE**<br>
> The initial APIs of this module are supported since API version 8. Newly added APIs will be marked with a superscript to indicate their earliest API version. > The initial APIs of this module are supported since API version 8. Newly added APIs will be marked with a superscript to indicate their earliest API version.
......
# Performance Tracing # Performance Tracing
This module provides the functions of tracing service processes and monitoring the system performance. It provides the data needed for hiTraceMeter to carry out performance analysis.
> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE**<br> > ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE**<br>
> The initial APIs of this module are supported since API version 8. Newly added APIs will be marked with a superscript to indicate their earliest API version. > The initial APIs of this module are supported since API version 8. Newly added APIs will be marked with a superscript to indicate their earliest API version.
......
...@@ -134,11 +134,11 @@ Obtains the new version information. This function uses an asynchronous callback ...@@ -134,11 +134,11 @@ Obtains the new version information. This function uses an asynchronous callback
**Example** **Example**
``` ```
updater.getNewVersionInfo(info => { updater.getNewVersionInfo((err, info) => {
console.log("getNewVersionInfo success " + info.status); console.log("getNewVersionInfo success " + info.status);
console.log(`info versionName = ` + info.checkResult[0].versionName); console.log(`info versionName = ` + info.checkResults[0].versionName);
console.log(`info versionCode = ` + info.checkResult[0].versionCode); console.log(`info versionCode = ` + info.checkResults[0].versionCode);
console.log(`info verifyInfo = ` + info.checkResult[0].verifyInfo); console.log(`info verifyInfo = ` + info.checkResults[0].verifyInfo);
}); });
``` ```
...@@ -160,9 +160,9 @@ Obtains the new version information. This function uses a promise to return the ...@@ -160,9 +160,9 @@ Obtains the new version information. This function uses a promise to return the
``` ```
updater.getNewVersionInfo().then(value => { updater.getNewVersionInfo().then(value => {
console.log(`info versionName = ` + value.checkResult[0].versionName); console.log(`info versionName = ` + value.checkResults[0].versionName);
console.log(`info versionCode = ` + value.checkResult[0].versionCode); console.log(`info versionCode = ` + value.checkResults[0].versionCode);
console.log(`info verifyInfo = ` + value.checkResult[0].verifyInfo); console.log(`info verifyInfo = ` + value.checkResults[0].verifyInfo);
}).catch(err => { }).catch(err => {
console.log("getNewVersionInfo promise error: " + err.code); console.log("getNewVersionInfo promise error: " + err.code);
}); });
...@@ -185,11 +185,11 @@ Checks whether the current version is the latest. This function uses an asynchro ...@@ -185,11 +185,11 @@ Checks whether the current version is the latest. This function uses an asynchro
**Example** **Example**
``` ```
updater.checkNewVersion(info => { updater.checkNewVersion((err, info) => {
console.log("checkNewVersion success " + info.status); console.log("checkNewVersion success " + info.status);
console.log(`info versionName = ` + info.checkResult[0].versionName); console.log(`info versionName = ` + info.checkResults[0].versionName);
console.log(`info versionCode = ` + info.checkResult[0].versionCode); console.log(`info versionCode = ` + info.checkResults[0].versionCode);
console.log(`info verifyInfo = ` + info.checkResult[0].verifyInfo); console.log(`info verifyInfo = ` + info.checkResults[0].verifyInfo);
}); });
``` ```
...@@ -211,9 +211,9 @@ Checks whether the current version is the latest. This function uses a promise t ...@@ -211,9 +211,9 @@ Checks whether the current version is the latest. This function uses a promise t
``` ```
updater.checkNewVersion().then(value => { updater.checkNewVersion().then(value => {
console.log(`info versionName = ` + value.checkResult[0].versionName); console.log(`info versionName = ` + value.checkResults[0].versionName);
console.log(`info versionCode = ` + value.checkResult[0].versionCode); console.log(`info versionCode = ` + value.checkResults[0].versionCode);
console.log(`info verifyInfo = ` + value.checkResult[0].verifyInfo); console.log(`info verifyInfo = ` + value.checkResults[0].verifyInfo);
}).catch(err => { }).catch(err => {
console.log("checkNewVersion promise error: " + err.code); console.log("checkNewVersion promise error: " + err.code);
}); });
...@@ -284,7 +284,7 @@ Reboots the device and clears the user partition data. This function uses a prom ...@@ -284,7 +284,7 @@ Reboots the device and clears the user partition data. This function uses a prom
**Example** **Example**
``` ```
updater.rebootAndCleanUserData(result => { updater.rebootAndCleanUserData((err, result) => {
console.log("rebootAndCleanUserData ", result) console.log("rebootAndCleanUserData ", result)
}); });
``` ```
...@@ -330,7 +330,7 @@ Installs the update package. This function uses a promise to return the result. ...@@ -330,7 +330,7 @@ Installs the update package. This function uses a promise to return the result.
**Example** **Example**
``` ```
updater.applyNewVersion(result => { updater.applyNewVersion((err, result) => {
console.log("applyNewVersion ", result) console.log("applyNewVersion ", result)
}); });
``` ```
...@@ -399,7 +399,7 @@ let policy = { ...@@ -399,7 +399,7 @@ let policy = {
autoUpgradeInterval: [ 2, 3 ], autoUpgradeInterval: [ 2, 3 ],
autoUpgradeCondition: 2 autoUpgradeCondition: 2
} }
updater.setUpdatePolicy(policy, result => { updater.setUpdatePolicy(policy, (err, result) => {
console.log("setUpdatePolicy ", result) console.log("setUpdatePolicy ", result)
}); });
``` ```
...@@ -458,7 +458,7 @@ Obtains the update policy. This function uses an asynchronous callback to return ...@@ -458,7 +458,7 @@ Obtains the update policy. This function uses an asynchronous callback to return
**Example** **Example**
``` ```
updater.getUpdatePolicy(policy => { updater.getUpdatePolicy((err, policy) => {
console.log("getUpdatePolicy success"); console.log("getUpdatePolicy success");
console.log(`policy autoDownload = ` + policy.autoDownload); console.log(`policy autoDownload = ` + policy.autoDownload);
console.log(`policy autoDownloadNet = ` + policy.autoDownloadNet); console.log(`policy autoDownloadNet = ` + policy.autoDownloadNet);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册