OOM分析
1. TOP5设备型号
Endpoint:
Method: POST
Type: RAW
URL: {{host}}/exception/top-dimension/crash
Headers:
Key | Value |
---|---|
Accept | application/json, text/plain, / |
Query params:
Key | Value |
---|---|
sort | exception |
Body:
{
"timePeriod": {{timePeriod}},
"endTime": {{endTime}},
"datasource": "APP_EXCEPTION_DATA",
"dimensions": [
"manufacturerId",
"manufacturerModelId"
],
"filters": [
{
"name": "mobileAppId",
"value": [
{{mobileAppId}}
],
"operator": "IN"
}
],
"render": "list",
"limit": 5
}
2. TOP5操作系统
Endpoint:
Method: POST
Type: RAW
URL: {{host}}/exception/top-dimension/oom
Headers:
Key | Value |
---|---|
Accept | application/json, text/plain, / |
Query params:
Key | Value |
---|---|
sort | exception |
Body:
{
"timePeriod": {{timePeriod}},
"endTime": {{endTime}},
"datasource": "APP_EXCEPTION_DATA",
"dimensions": [
"osId",
"osVersionId"
],
"filters": [
{
"name": "mobileAppId",
"value": [
{{mobileAppId}}
],
"operator": "IN"
}
],
"render": "list",
"limit": 5
}
3. TOP5版本
Endpoint:
Method: POST
Type: RAW
URL: {{host}}/exception/top-dimension/crash
Headers:
Key | Value |
---|---|
Accept | application/json, text/plain, / |
Query params:
Key | Value |
---|---|
sort | exception |
Body:
{
"timePeriod": {{timePeriod}},
"endTime": {{endTime}},
"datasource": "APP_EXCEPTION_DATA",
"dimensions": [
"mobileAppVersionId"
],
"filters": [
{
"name": "mobileAppId",
"value": [
{{mobileAppId}}
],
"operator": "IN"
}
],
"render": "list",
"limit": 5
}
4. TOP5渠道
Endpoint:
Method: POST
Type: RAW
URL: {{host}}/exception/top-dimension/crash
Headers:
Key | Value |
---|---|
Accept | application/json, text/plain, / |
Query params:
Key | Value |
---|---|
sort | exception |
Body:
{
"timePeriod": {{timePeriod}},
"endTime": {{endTime}},
"datasource": "APP_EXCEPTION_DATA",
"dimensions": [
"channelId"
],
"filters": [
{
"name": "mobileAppId",
"value": [
{{mobileAppId}}
],
"operator": "IN"
}
],
"render": "list",
"limit": 5
}
5. OOM-信息卡片
Endpoint:
Method: POST
Type: RAW
URL: {{host}}/adhoc/query/zero-filling
Headers:
Key | Value |
---|---|
Accept | application/json, text/plain, / |
Body:
{
"timePeriod": 2880,
"endTime": "2022-09-08 15:44:07",
"granularity": "PT5M",
"datasource": "APP_EXCEPTION_DATA",
"filters": [
{
"name": "mobileAppId",
"value": [
7573
],
"operator": "IN"
}
],
"render": "list",
"exceptionRateRule": 1,
"exceptionRateUnit": 0
}
6. 设备列表
Endpoint:
Method: POST
Type: RAW
URL: {{host}}/adhoc/query
Headers:
Key | Value |
---|---|
Accept | application/json, text/plain, / |
Query params:
Key | Value |
---|---|
type | 1 |
status | -1 |
Body:
{
"timePeriod": 1037,
"endTime": "2022-09-21 17:16:12",
"granularity": "PT5M",
"datasource": "app_crash",
"dimensions": [
"id",
"timestamp",
"timestampCrash",
"mobileCrashId",
"userId",
"mobileAppVersionId",
"manufacturerId",
"manufacturerModelId",
"osId",
"osVersionId",
"crashDataType",
"deviceId"
],
"filters": [
{
"name": "mobileAppId",
"value": [
7543
],
"operator": "IN"
},
{
"name": "crashDataType",
"value": [
1
],
"operator": "="
}
],
"groupBy": false,
"render": "list"
}
7. oom-data
Endpoint:
Method: POST
Type: RAW
URL: {{host}}/exception/oom/trace
Headers:
Key | Value |
---|---|
Accept | application/json, text/plain, / |
Query params:
Key | Value |
---|---|
type | 1 |
status | -1 |
Body:
{
"timePeriod": 1037,
"endTime": "2022-09-21 17:16:12",
"granularity": "PT5M",
"datasource": "app_crash",
"dimensions": [
"*"
],
"metrics": [
"*"
],
"filters": [
{
"name": "mobileAppId",
"value": [
7543
],
"operator": "IN"
},
{
"name": "id",
"value": [
810008
],
"operator": "="
}
],
"groupBy": false,
"render": "list"
}
8. refs-stacks
Endpoint:
Method: POST
Type: RAW
URL: {{host}}/exception/oom/refs-stacks
Headers:
Key | Value |
---|---|
Accept | application/json, text/plain, / |
Query params:
Key | Value |
---|---|
type | 1 |
status | -1 |
Body:
{
"mobileAppId": 7543,
"mobileAppVersionId": 9690,
"osVersionId": 61,
"manufacturerModelName": "iPhone 12",
"additionalInfo": {
"mem_used": "1.69GB(46.69%)",
"img": "Doomfirst",
"or": 0,
"ast": 1666753079,
"crt": 1666753095,
"pu": 15,
"pwr": 97,
"imglist": [
"Doomfirst,2E75FAD4-A799-34C1-8296-56B3AA3D6EDA,arm64,1,0x1040e4000,0x100000000",
"CoreFoundation,AF3F8E01-C130-3464-AD40-C5532D273483,arm64e,0,0x1a74d3000,0x18032f000",
"libsystem_malloc.dylib,CFAE13F0-5B0A-3CE5-B3D2-C2F7276C1FE1,arm64e,0,0x1b6984000,0x18f7e0000",
"libdispatch.dylib,3277BF1E-B994-3609-9B30-E0186BBF3C25,arm64e,0,0x1a71e9000,0x180045000",
"libsystem_pthread.dylib,677A4A35-39F3-303E-8C65-3FA891A75CAF,arm64e,0,0x1f0a0d000,0x1c9869000",
"libobjc.A.dylib,282FD01C-1437-349B-AE1A-2EFF32859670,arm64e,0,0x1bbb48000,0x1949a4000",
"UIKitCore,05147936-B875-3EF3-94DB-9C8869BB0E34,arm64e,0,0x1a93df000,0x18223b000",
"libdyld.dylib,BA60CB9E-95C5-3646-BEED-D313E15586CF,arm64e,0,0x1a722c000,0x180088000",
"FrontBoardServices,E22FDD4D-3F20-3D60-A568-E82AE2B4151C,arm64e,0,0x1b68f7000,0x18f753000",
"GraphicsServices,D365EFCF-659C-3292-B203-5692107EDD1D,arm64e,0,0x1be5e9000,0x197445000",
"libboringssl.dylib,6323C8B4-E8DE-3628-815B-DC09DAA662E7,arm64e,0,0x1bcea7000,0x195d03000",
"libusrtcp.dylib,157F5527-7D0D-3538-85E0-E52DCC8880AF,arm64e,0,0x1aac2a000,0x183a86000",
"libnetwork.dylib,267D1486-BBBD-34EF-BC93-D51B2460B9E9,arm64e,0,0x1a808c000,0x180ee8000",
"CFNetwork,F8C7B816-49AB-3947-9309-B8975A7CCEA0,arm64e,0,0x1a7bf4000,0x180a50000",
"Foundation,5C24EE4A-3447-36BD-9910-6F4D9616D692,arm64e,0,0x1a8811000,0x18166d000",
"vImage,5FB545F9-E9D3-32CC-81A3-55D4C9BB880D,arm64e,0,0x1c33a6000,0x19c202000",
"libCGInterfaces.dylib,B1D72229-63DB-3ABD-9AB7-62FB49FFB4DA,arm64e,0,0x1a8e2d000,0x181c89000",
"QuartzCore,DC2644E7-E5E4-3D83-9110-A5AE7E2C8B1F,arm64e,0,0x1aa8ab000,0x183707000",
"SystemConfiguration,98796725-FD6C-39B6-AF67-B09485215996,arm64e,0,0x1a7a81000,0x1808dd000",
"libsystem_c.dylib,41D8B3B5-2007-3B5C-8291-CE0CE64AF7C0,arm64e,0,0x1b08a6000,0x189702000",
"libsqlite3.dylib,8D5E6B03-1EB1-30A3-9BAF-1CA70BACC372,arm64e,0,0x1c0baf000,0x199a0b000"
],
"mem_total": "3.62GB",
"bv": "18B121",
"mem_free": "1.32GB(36.41%)",
"ne": 0,
"jb": 1,
"sp_free": "17.96GB(30.19%)",
"arch": "arm64e",
"bid": "2E75FAD4-A799-34C1-8296-56B3AA3D6EDA",
"cust": "{\"ehe\":\"hha\",\"appear\":\"netAppear\",\"load\":\"view\",\"netlib\":\"net\"}"
},
"stacks": [
{
"caller": "0#0x10010ab38#\n",
"size": 801024,
"frames": "2#0x18f7f2690#\n5#0x1949c03cc#\n0#0x10006fa30#\n0#0x10010ab38#\n0#0x10003e528#\n6#0x182dfe540#\n6#0x182e005a8#\n6#0x182e06004#\n6#0x18245d950#\n6#0x182e01db0#\n6#0x182e021dc#\n6#0x182e07a74#\n0#0x1001723a8#\n7#0x1800896c0#\n",
"count": 1,
"deoFrames": "\nlibsystem_malloc.dylib\t0x18f7f2690\t__malloc_zone_calloc + 208\nlibobjc.A.dylib\t0x1949c03cc\t__objc_rootAllocWithZone + 40\nDoomfirst\t0x10006fa30\t+[NSObject(ObjectEventLogging) nbs_event_logging_alloc] (nbs_nsobject_hook.mm:41)\nDoomfirst\t0x10010ab38\t-[AppDelegate application:didFinishLaunchingWithOptions:] (AppDelegate.m:140)\nDoomfirst\t0x10003e528\t-[NBSAppAgent nbs_application:didFinishLaunchingWithOptions:] (NBSAppAgent.m:1375)\nUIKitCore\t0x182dfe540\t-[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 360\nUIKitCore\t0x182e005a8\t-[UIApplication _callInitializationDelegatesWithActions:forCanvas:payload:fromOriginatingProcess:] + 5136\nUIKitCore\t0x182e06004\t-[UIApplication _runWithMainScene:transitionContext:completion:] + 1244\nUIKitCore\t0x18245d950\t-[_UISceneLifecycleMultiplexer completeApplicationLaunchWithFBSScene:transitionContext:] + 216\nUIKitCore\t0x182e01db0\t-[UIApplication _compellApplicationLaunchToCompleteUnconditionally] + 68\nUIKitCore\t0x182e021dc\t-[UIApplication _run] + 1036\nUIKitCore\t0x182e07a74\t_UIApplicationMain + 168\nDoomfirst\t0x1001723a8\t_main (main.m:138)\nlibdyld.dylib\t0x1800896c0\t_start + 4",
"deoCaller": "Doomfirst\t0x10010ab38\t-[AppDelegate application:didFinishLaunchingWithOptions:] (AppDelegate.m:140)"
},
{
"caller": "0#0x100081a44#\n",
"size": 801024,
"frames": "2#0x18f7f2690#\n5#0x1949c03cc#\n0#0x10006fa30#\n0#0x100081a44#\n6#0x18228aaec#\n6#0x182e03d20#\n6#0x182e040b4#\n6#0x18290185c#\n8#0x18f75d47c#\n8#0x18f788dc4#\n8#0x18f76c560#\n8#0x18f788a88#\n3#0x180048db0#\n3#0x18004c738#\n8#0x18f7b1310#\n8#0x18f7b0fa0#\n8#0x18f7b14f4#\n1#0x1803d076c#\n1#0x1803d0668#\n1#0x1803cf9cc#\n1#0x1803c9a8c#\n1#0x1803c921c#\n9#0x197448784#\n6#0x182e02200#\n6#0x182e07a74#\n0#0x1001723a8#\n7#0x1800896c0#\n",
"count": 1
}
]
}
10. 持有对象
Endpoint:
Method: POST
Type: RAW
URL: {{host}}/exception/oom/trace
Headers:
Key | Value |
---|---|
Accept | application/json, text/plain, / |
Query params:
Key | Value |
---|---|
type | 1 |
status | -1 |
oomDataType | bigobject |
Body:
{"timePeriod":2880,"endTime":"2022-11-18 10:14:49","datasource":"app_crash","metrics":["*"],"dimensions":["*"],"filters":[{"name":"mobileAppId","value":[7766],"operator":"IN"},{"name":"id","value":[836254],"operator":"IN"},{"name":"crashDataType","value":[1,2],"operator":"IN"}],"limit":1,"render":"list","groupBy":false}
11. 次数OOM率
Endpoint:
Method: POST
Type: RAW
URL: {{host}}/exception/oom-rate
Headers:
Key | Value |
---|---|
Accept | application/json, text/plain, / |
Query params:
Key | Value |
---|---|
label | trendChartData |
Body:
{
"list": [
{
"timePeriod": 43200,
"endTime": "2022-10-18 14:31:07",
"granularity": "P1D",
"datasource": "APP_EXCEPTION_DATA",
"dimensions": [
"timeStr"
],
"filters": [
{
"name": "mobileAppId",
"value": [
105981
],
"operator": "IN"
}
],
"exceptionRateRule": 0,
"exceptionRateUnit": 1,
"render": "chart-s"
}
],
"contentType": "json",
"method": "POST"
}
12. 奔溃次数趋势
Endpoint:
Method: POST
Type: RAW
URL: {{host}}/adhoc/query/zero-filling
Headers:
Key | Value |
---|---|
Accept | application/json, text/plain, / |
Query params:
Key | Value |
---|---|
label | trendChartData |
Body:
{
"timePeriod": {{timePeriod}},
"endTime": {{endTime}},
"datasource": "APP_EXCEPTION_DATA",
"metrics": [
"crashCount"
],
"dimensions": [
"timeStr"
],
"filters": [
{
"name": "mobileAppId",
"value": [
{{mobileAppId}}
],
"operator": "IN"
},
{
"name": "moduleType",
"value": [
1
],
"operator": "IN"
}
],
"render": "list"
}
13. 影响用户数趋势
Endpoint:
Method: POST
Type: RAW
URL: {{host}}/adhoc/query/zero-filling
Headers:
Key | Value |
---|---|
Accept | application/json, text/plain, / |
Query params:
Key | Value |
---|---|
label | trendChartData |
Body:
{
"timePeriod": {{timePeriod}},
"endTime": {{endTime}},
"datasource": "APP_EXCEPTION_DATA",
"metrics": [
"exceptionDeviceCount"
],
"dimensions": [
"timeStr"
],
"filters": [
{
"name": "mobileAppId",
"value": [
{{mobileAppId}}
],
"operator": "IN"
},
{
"name": "moduleType",
"value": [
1
],
"operator": "IN"
}
],
"render": "list"
}
14. 启动次数&活跃设备数
Endpoint:
Method: POST
Type: RAW
URL: {{host}}/adhoc/query
Headers:
Key | Value |
---|---|
Accept | application/json, text/plain, / |
Body:
{
"timePeriod": 2880,
"endTime": "2022-09-08 14:41:25",
"granularity": "P1H",
"datasource": "APP_DEVICE_DATA",
"metrics": [
"launchCount","deviceCount"
],
"dimensions": [
],
"filters": [
{
"name": "mobileAppId",
"value": [
106015
],
"operator": "IN"
}
],
"render": "list"
}