UMAPMConfig.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. //
  2. // UMAPMConfig.h
  3. // UMAPM
  4. //
  5. // Created by zhangjunhua on 2021/6/21.
  6. // Copyright © 2021 wangkai. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. @interface UMAPMConfig : NSObject<NSCopying>
  11. +(UMAPMConfig*)defaultConfig;
  12. /**
  13. * crash&卡顿监控开关,默认开启
  14. */
  15. @property (nonatomic,assign) BOOL crashAndBlockMonitorEnable;
  16. /**
  17. * 启动模块监控开关,默认开启
  18. */
  19. @property (nonatomic,assign) BOOL launchMonitorEnable;
  20. /**
  21. * 内存模块监控开关,默认开启
  22. */
  23. @property (nonatomic,assign) BOOL memMonitorEnable;
  24. /**
  25. * OOM模块监控开关,默认开启
  26. */
  27. @property (nonatomic,assign) BOOL oomMonitorEnable;
  28. /**
  29. * 网络模块监控开关,默认开启
  30. */
  31. @property (nonatomic,assign) BOOL networkEnable;
  32. /**
  33. * H5打通模块开关,默认开启
  34. */
  35. @property (nonatomic,assign) BOOL javaScriptBridgeEnable;
  36. /**
  37. * 页面分析打通模块开关,默认开启
  38. */
  39. @property (nonatomic,assign) BOOL pageMonitorEnable;
  40. /**
  41. *集成测试。
  42. */
  43. + (BOOL)handleUrl:(NSURL *)url;
  44. /*
  45. * 卡顿监控参数
  46. * 发送检测心跳的时间间隔。单位:秒。
  47. * 区间范围[1,4],超过就用默认值2
  48. */
  49. @property (nonatomic, assign) float sendBeatInterval;
  50. /*
  51. * 卡顿监控参数
  52. * 检测卡顿的时间间隔 单位是秒。 (发送心跳后checkBeatInterval秒进行检测)
  53. * 区间范围[1,4],超过就用默认值2
  54. */
  55. @property (nonatomic, assign) float checkBeatInterval;
  56. /*
  57. * 卡顿监控参数
  58. * 连续多少次没心跳 认为触发卡顿
  59. * 区间范围[1,4],超过就用默认值3,注意此参数必须为整数
  60. */
  61. @property (nonatomic, assign) NSInteger toleranceBeatMissingCount;
  62. @end
  63. NS_ASSUME_NONNULL_END