Skip to content

Commit

Permalink
release v1.2.2
Browse files Browse the repository at this point in the history
PR-URL: #67
Published-Reviewed-BY: hyj1991 <[email protected]>
  • Loading branch information
hyj1991 authored Jun 12, 2020
1 parent e4dfb73 commit 105ae06
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

Easy-Monitor v3.0 Node.js Runtime 插件,输出性能日志,并且可以进行实时的运行时状态采样。

完整部署文档:https://www.yuque.com/hyj1991/easy-monitor

## I. 兼容性

Expand Down Expand Up @@ -38,9 +39,17 @@ xprofiler 插件支持三大主流操作系统:
执行如下命令安装插件

```bash
npm i xprofiler --save
npm i xprofiler --save --xprofiler_binary_host_mirror=https://npm.taobao.org/mirrors/xprofiler
```

如果淘宝镜像暂时没同步的话,也可以执行阿里云镜像:

```bash
npm i xprofiler --save --xprofiler_binary_host_mirror=http://120.27.24.200/xprofiler
```

> 这里使用了 `node-pre-gyp` 帮助开发者无需进行本地编译即可使用此插件,默认插件位于 [Github Release](https://github.com/X-Profiler/xprofiler/releases) 页面,国内访问可能较慢,你也可以自行镜像到其它位置加速安装。
### 嵌入项目

在您的项目入口顶部引入即可,性能分析日志默认输出在 `os.tmpdir()`
Expand Down Expand Up @@ -104,6 +113,7 @@ const defaultConfig = {

const xprofilerConfig = Object.assign({}, defaultConfig, envConfig, userConfig);
```

详细配置覆盖规则的测试可以参见 [config.test.js](https://github.com/X-Profiler/xprofiler/blob/master/test/config.test.js)

### 性能分析日志
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "xprofiler",
"version": "1.2.1",
"version": "1.2.2",
"description": "node.js addon to output runtime logs",
"bin": {
"xprofctl": "bin/xprofctl"
Expand All @@ -9,9 +9,9 @@
"binary": {
"module_name": "xprofiler",
"module_path": "./build/binding/{configuration}/{node_abi}-{platform}-{arch}/",
"remote_path": "./X-Profiler/xprofiler/releases/download/v{version}/",
"remote_path": "./v{version}/",
"package_name": "{module_name}-v{version}-{node_abi}-{platform}-{arch}.tar.gz",
"host": "https://github.com"
"host": "https://github.com/X-Profiler/xprofiler/releases/download"
},
"scripts": {
"install": "node-pre-gyp install --fallback-to-build",
Expand Down

0 comments on commit 105ae06

Please sign in to comment.