Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

WeChat small program API performance and speed reporting


May 19, 2021 WeChat Mini Program Development Document


Table of contents


wx.reportPerformance(Number id, Number value, String| Array dimensions)

Base Library 2.9.2 starts to support, and low versions need to be compatible.

Small program speed reporting. B efore you can use it, you need to manage the background configuration in a small program.

Parameters

Number id

Metric id

Number value

The number that needs to be escalated

String| Array dimensions

Custom dimensions (optional)

The sample code

wx.reportPerformance(1101, 680)
wx.reportPerformance(1101, 680, 'custom')