Skip to content
导览

Class: PerformanceManager

性能优化管理类

Details

获取性能优化对象

Examples

js
const performanceManager = await cloud.getPerformanceManager()   // 在CreateApp时调用
const performanceManager = await cloud.getPerformanceManager()   // 在CreateApp时调用

Hierarchy

  • Callable

    PerformanceManager

Methods

SourceOptimized

SourceOptimized(isStart): Promise<any>

开启/关闭性能优化

Examples

typescript
var performanceManager = await cloud.getPerformanceManager();
performanceManager.SourceOptimized(true);
var performanceManager = await cloud.getPerformanceManager();
performanceManager.SourceOptimized(true);

Parameters

NameType
isStartboolean

Returns

Promise<any>