# mt.getMtPerformance()

获取性能管理器单例。

# 支持情况

项 说明
兼容性 美团小游戏特有

# 参数

无参数。

# 返回值

Performance — 性能管理器单例对象。

# 示例代码

const perf = mt.getMtPerformance()
perf.onJankOccur((res) => {
  console.log('卡顿类型:', res.jankType, '持续时间:', res.jankOccurTime, 'ms')
})

# 与微信差异

  • 此 API 为美团小游戏特有,微信小游戏中无对应接口。
上次更新: 8/10/2026, 5:36:37 PM