WXAppMonitorProtocol.h 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. /*
  2. * Licensed to the Apache Software Foundation (ASF) under one
  3. * or more contributor license agreements. See the NOTICE file
  4. * distributed with this work for additional information
  5. * regarding copyright ownership. The ASF licenses this file
  6. * to you under the Apache License, Version 2.0 (the
  7. * "License"); you may not use this file except in compliance
  8. * with the License. You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing,
  13. * software distributed under the License is distributed on an
  14. * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  15. * KIND, either express or implied. See the License for the
  16. * specific language governing permissions and limitations
  17. * under the License.
  18. */
  19. #import "WXModuleProtocol.h"
  20. /** dimenValue */
  21. #define BIZTYPE @"bizType"
  22. #define PAGENAME @"pageName"
  23. #define WXSDKVERSION @"WXSDKVersion"
  24. #define JSLIBVERSION @"JSLibVersion"
  25. #define JSLIBSIZE @"JSLibSize"
  26. #define WXREQUESTTYPE @"requestType"
  27. #define WXCONNECTIONTYPE @"connectionType"
  28. #define NETWORKTYPE @"networkType"
  29. #define CACHETYPE @"cacheType"
  30. #define WXCUSTOMMONITORINFO @"customMonitorInfo"
  31. /** measureValue */
  32. #define SDKINITTIME @"SDKInitTime"
  33. #define SDKINITINVOKETIME @"SDKInitInvokeTime"
  34. #define JSLIBINITTIME @"JSLibInitTime"
  35. #define JSTEMPLATESIZE @"JSTemplateSize"
  36. #define NETWORKTIME @"networkTime"
  37. #define COMMUNICATETIME @"communicateTime"
  38. #define SCREENRENDERTIME @"screenRenderTime"
  39. #define TOTALTIME @"totalTime"
  40. #define FIRSETSCREENJSFEXECUTETIME @"firstScreenJSFExecuteTime"
  41. #define CALLCREATEINSTANCETIME @"callCreateInstanceTime"
  42. #define COMMUNICATETOTALTIME @"communicateTotalTime"
  43. #define FSRENDERTIME @"fsRenderTime"
  44. #define COMPONENTCOUNT @"componentCount"
  45. #define M_COMPONENT_TIME @"componentCreateTime"
  46. #define CACHEPROCESSTIME @"cacheProcessTime"
  47. #define CACHERATIO @"cacheRatio"
  48. //todo new point
  49. #define M_FS_CALL_JS_TIME @"fsCallJsTotalTime"
  50. #define M_FS_CALL_JS_NUM @"fsCallJsTotalNum"
  51. #define M_FS_CALL_NATIVE_TIME @"fsCallNativeTotalTime"
  52. #define M_FS_CALL_NATIVE_NUM @"fsCallNativeTotalNum"
  53. #define M_FS_CALL_EVENT_NUM @"fsCallEventTotalNum"
  54. #define M_FS_REQUEST_NET_NUM @"fsRequestNum"
  55. #define M_CELL_EXCEED_NUM @"cellExceedNum"
  56. #define M_MAX_DEEP_VDOM @"maxDeepVDomLayer"
  57. #define M_IMG_WRONG_SIZE_NUM @"imgSizeCount"
  58. #define M_TIMER_NUM @"timerCount"
  59. #define M_WRONG_IMG_NUM @"imgSizeCount"
  60. #define M_INTERACTION_TIME @"interactionTime"
  61. #define M_INTERACTION_ADD_COUNT @"interactionViewAddCount"
  62. #define M_INTERACTION_LIMIT_ADD_COUNT @"interactionViewAddLimitCount"
  63. #define M_NEW_FS_RENDER_TIME @"newFsRenderTime"
  64. @protocol WXAppMonitorProtocol <WXModuleProtocol>
  65. - (void)commitAppMonitorArgs:(NSDictionary *)args;
  66. - (void)commitAppMonitorAlarm:(NSString *)pageName monitorPoint:(NSString *)monitorPoint success:(BOOL)success errorCode:(NSString *)errorCode errorMsg:(NSString *)errorMsg arg:(NSString *)arg;
  67. @optional
  68. - (void)commitMonitorWithPage:(NSString *)pageName monitorPoint:(NSString *)monitorPoint args:(NSDictionary *)args;
  69. @end