bonus-material-app/nativeplugins/Mpaas-Scan/ios/MPMasAdapter.framework/Headers/MPAnalysisHelper.h

116 lines
3.9 KiB
C
Raw Normal View History

2024-12-20 09:23:59 +08:00
//
// MPAnalysisHelper.h
// MPAnalysis
//
// Created by yangwei on 16/12/6.
// Copyright © 2016年 Alipay. All rights reserved.
//
#import <Foundation/Foundation.h>
@protocol MPLogCryptDelegate;
@interface MPAnalysisHelper : NSObject
+ (instancetype)sharedInstance;
/**
* crash
*/
+ (void)enableCrashReporterService;
/**
* /退
*/
+ (void)enableDisasterRecovery:(BOOL)enable;
/**
* /
*/
+ (void)enableLogEncrypt:(BOOL)enable;
/**
* /
*/
+ (void)enableAutoLog:(BOOL)enable;
/**
* / delegate
*/
+ (void)setLogCryptDelegate:(id<MPLogCryptDelegate>)delegate;
/**
* 10%, startPerformanceMonitor调用之前设置
* @param percent 0 ~ 100
*/
+ (void)setLagMonitorPercent:(NSUInteger)percent;
//启动性能监控,一般在启动后立刻调用例如didFinishLauncher中
+ (void)startPerformanceMonitor;
/**
APM RPC网络监控
*/
+ (void)startAPMNetMonitor;
//启动网络监控
+ (void)startNetMonitor;
// 设置电量消耗的统计时间默认为1800秒也就是应用累计使用半个小时将电量使用情况上报一次。最小设置值为300秒, 设置为0或不设置都是默认1800秒,如果需要设置,在启动性能监控前设置
+ (void)setBatteryMonitorPeriod:(NSTimeInterval)seconds;
/**
*
* YES
*/
- (void)setShouldLogReportActiveWillEnterForeground:(BOOL)shouldLog;
/**
* 使
* 0
*
* 0(s)
*/
- (void)setLogReportActiveMinInterval:(NSTimeInterval)timeInterval;
/**
* 使App启动的时间app启动到闪屏结束首页显示出来的时间
* @param time (ms)
*/
- (void)writeLogForStartupWithTime:(NSTimeInterval )time;
/**
* 退
*
*/
- (void)writeLogForCrashReporter;
/**
* 使didFinishLauncher中调用此方法
*
* 0
* - (NSTimeInterval)logReportActiveMinInterval
*/
- (void)writeLogForReportActive;
/**
* 使
*
* @param style mPaaS移动分析控制台
*/
- (void)writeLogForLoginActiveWithStyle:(NSString *)style;
/**
* 使
*
* @param style mPaaS移动分析控制台
*/
- (void)writeLogForRegistActiveWithStyle:(NSString *)style;
// 支持隐私弹框点同意前,不上报日志
+ (void)holdUploadLogUntilAgreed;
@end