[go: up one dir, main page]

@antv/g-perf
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

g-perf

监控 G / G2 中的节点数量、事件数量,可以辅助调试在动态渲染图形的时候,是否存在泄露。

Usage

  • 开发调试
import GP from '@antv/g-perf';

// 监控 G2 plot 和 G
new GP(plot).start();

即可在页面左下角出现一个调试区域,实时显示当前画布的节点数量。

  • 单测中使用
import GP from '@antv/g-perf';

// 监控 G2 plot 和 G
const gp = new GP(plot);

const datum = gp.collect();

expect(datum.pEvent).to.be.equal(100);

TODO

  • draw call
  • 多实例的统一监控
  • spark line 可视化数据

Readme

Keywords

Package Sidebar

Install

npm i @antv/g-perf

Weekly Downloads

3

Version

1.0.0

License

MIT

Unpacked Size

9.88 kB

Total Files

14

Last publish

Collaborators

  • banxuan
  • xuying1027
  • lvisei
  • yisi.wang
  • basketduck
  • biupiubiupiu
  • flash1
  • dreammy23
  • laixingui.lxg
  • zhangjunjie-loki
  • rainy25ghz
  • zeyuwang
  • yanxiong
  • susiwen8
  • freestyle21
  • soundquiet
  • elaine.q.10
  • sturuby
  • sakuya223
  • serializedowen
  • xdzhao
  • yangzhanmei
  • wjgogogo
  • leungwensen
  • dori
  • iaaron
  • yard
  • simaq
  • dxq613
  • intchous
  • susan_ann
  • jinke.li
  • lzxue
  • army8735
  • atool
  • baizn
  • dengfuping
  • neoddish
  • jeffy2012
  • zqlu
  • afc163
  • pomelo-nwu
  • kopiluwaky
  • ccnuzindex
  • panyuqi
  • bubkoo
  • zengyue
  • kasmine
  • boyu.zlj
  • l1ud0ngq1
  • newbyvector
  • winniexing
  • chenluli
  • kn9117
  • xdddst
  • semious2020
  • esora
  • nadia_liu
  • bbsqq
  • mxz96102
  • openwayne
  • pearmini
  • pddpd
  • yiqianyao
  • zhanba
  • cxxxxxn