#import <TCMPPSDK/TCMPPSDK.h>// Poll periodically (e.g., once per second) after the mini game starts successfully (handleStartUpSuccessWithApp:)TMFMiniGamePerfData *data =[[TMFMiniAppSDKManager sharedInstance] miniGamePerfDataForAppID:appID];if (data) {// Parse the fields. See the field descriptions below.}
Field | Description |
appid | Unique identifier of the mini game. |
version | Mini game version. |
sdkVersion | SDK version. |
baseLibVersion | Base library version. |
Field | Description |
requesttime | Network time spent fetching mini game configuration information. |
loadtime | Time from tapping to logic layer readiness (including base library loading and code injection). |
readytime | Time from tapping to first screen rendering readiness (appearance of the first frame). |
Field | Unit | Description |
fpsAvg | Frames/sec | Average frame rate. |
fpsVariance | - | Frame rate stability. A larger variance indicates greater instability. |
frameTime | ms | Average rendering time per frame. |
jank | Count | Stuttering count (single frame ≥ 50 ms, approx. < 20 FPS). |
bigJank | Count | Severe stuttering count (single frame ≥ 100 ms, approx. < 10 FPS). This is also counted in jank. |
cpuAvg / cpuPeak | % | Average/Peak CPU usage of the process (may exceed 100%). |
memoryAvg / memoryPeak | MB | Average/Peak memory (absolute physical memory). |
memoryGrowth | MB | Memory increment (peak value minus the baseline before startup). |
duration | ms | Running duration. |
fpsSampleTime | ms | The timestamp (epoch in milliseconds) when the frame rate data was collected. Meaningful only in JIT mode; always 0 in non-JIT mode. |
Field | Unit | Description |
flow | Bytes | Cumulative download traffic. |
downtime | ms | Cumulative download time. |
modulename | - | Name of the main package or subpackage from the most recent download. |
jank, and ≥ 100 ms is recorded as bigJank (the latter is also counted in jank).fpsSampleTime to determine data freshness. If the base library does not support data return, fpsAvg / frameTime / jank / bigJank / fpsVariance will be 0 in JIT mode, while CPU, memory, startup time, and download data remain unaffected.Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback