-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(backend): ingest cpu and memory performance metrics
add the following events: 1. cpu_usage 2. memory_usage 3. low_memory 4. trim_memory
- Loading branch information
Showing
8 changed files
with
356 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
measure-android/session-samples/unobfuscated/cpu_usage.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
"events": [ | ||
{ | ||
"cpu_usage": { | ||
"num_cores": 1, | ||
"clock_speed": 100, | ||
"start_time": 829351, | ||
"uptime": 8306448, | ||
"utime": 54, | ||
"cutime": 0, | ||
"cstime": 0, | ||
"stime": 46, | ||
"interval_config": 3000 | ||
}, | ||
"timestamp": "2023-10-24T15:25:15.813000000Z", | ||
"type": "cpu_usage", | ||
"thread_name": "main" | ||
} | ||
], | ||
"resource": { | ||
"app_build": "50453", | ||
"app_unique_id": "org.wikipedia.dev", | ||
"app_version": "2.7.50453-dev-2023-10-14", | ||
"device_density": 2.75, | ||
"device_density_dpi": 440, | ||
"device_height_px": 2154, | ||
"device_is_foldable": true, | ||
"device_is_physical": false, | ||
"device_manufacturer": "Google", | ||
"device_model": "sdk_gphone64_arm64", | ||
"device_name": "emu64a", | ||
"device_type": "phone", | ||
"device_width_px": 1080, | ||
"device_locale": "en-US", | ||
"measure_sdk_version": "0.0.1-SNAPSHOT", | ||
"os_name": "android", | ||
"os_version": "33", | ||
"platform": "android", | ||
"network_type": "wifi", | ||
"network_generation": "2g", | ||
"network_provider": "T-Mobile" | ||
}, | ||
"session_id": "f1fd8bb0-e336-412a-9ff5-43d8f355c542", | ||
"timestamp": "2023-10-14T00:55:26.660000000Z" | ||
} |
34 changes: 34 additions & 0 deletions
34
measure-android/session-samples/unobfuscated/low_memory.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"events": [ | ||
{ | ||
"timestamp": "2023-10-24T15:25:15.813000000Z", | ||
"type": "low_memory", | ||
"thread_name": "main" | ||
} | ||
], | ||
"resource": { | ||
"app_build": "50453", | ||
"app_unique_id": "org.wikipedia.dev", | ||
"app_version": "2.7.50453-dev-2023-10-14", | ||
"device_density": 2.75, | ||
"device_density_dpi": 440, | ||
"device_height_px": 2154, | ||
"device_is_foldable": true, | ||
"device_is_physical": false, | ||
"device_manufacturer": "Google", | ||
"device_model": "sdk_gphone64_arm64", | ||
"device_name": "emu64a", | ||
"device_type": "phone", | ||
"device_width_px": 1080, | ||
"device_locale": "en-US", | ||
"measure_sdk_version": "0.0.1-SNAPSHOT", | ||
"os_name": "android", | ||
"os_version": "33", | ||
"platform": "android", | ||
"network_type": "wifi", | ||
"network_generation": "2g", | ||
"network_provider": "T-Mobile" | ||
}, | ||
"session_id": "f1ad7bb0-e226-410f-9ff5-43d8f355c542", | ||
"timestamp": "2023-10-14T00:55:26.660000000Z" | ||
} |
44 changes: 44 additions & 0 deletions
44
measure-android/session-samples/unobfuscated/memory_usage.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"events": [ | ||
{ | ||
"memory_usage": { | ||
"java_max_heap": 262144, | ||
"java_total_heap": 151331, | ||
"java_free_heap": 62762, | ||
"total_pss": 342870, | ||
"rss": 447748, | ||
"native_total_heap": 109664, | ||
"native_free_heap": 42273, | ||
"interval_config": 2000 | ||
}, | ||
"timestamp": "2023-10-24T15:25:15.813000000Z", | ||
"type": "memory_usage", | ||
"thread_name": "main" | ||
} | ||
], | ||
"resource": { | ||
"app_build": "50453", | ||
"app_unique_id": "org.wikipedia.dev", | ||
"app_version": "2.7.50453-dev-2023-10-14", | ||
"device_density": 2.75, | ||
"device_density_dpi": 440, | ||
"device_height_px": 2154, | ||
"device_is_foldable": true, | ||
"device_is_physical": false, | ||
"device_manufacturer": "Google", | ||
"device_model": "sdk_gphone64_arm64", | ||
"device_name": "emu64a", | ||
"device_type": "phone", | ||
"device_width_px": 1080, | ||
"device_locale": "en-US", | ||
"measure_sdk_version": "0.0.1-SNAPSHOT", | ||
"os_name": "android", | ||
"os_version": "33", | ||
"platform": "android", | ||
"network_type": "wifi", | ||
"network_generation": "2g", | ||
"network_provider": "T-Mobile" | ||
}, | ||
"session_id": "f1fd8bb0-e226-410f-9ff5-43d8f355c542", | ||
"timestamp": "2023-10-14T00:55:26.660000000Z" | ||
} |
37 changes: 37 additions & 0 deletions
37
measure-android/session-samples/unobfuscated/trim_memory.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"events": [ | ||
{ | ||
"trim_memory": { | ||
"level": "TRIM_MEMORY_RUNNING_LOW" | ||
}, | ||
"timestamp": "2023-10-24T15:25:15.813000000Z", | ||
"type": "trim_memory", | ||
"thread_name": "main" | ||
} | ||
], | ||
"resource": { | ||
"app_build": "50453", | ||
"app_unique_id": "org.wikipedia.dev", | ||
"app_version": "2.7.50453-dev-2023-10-14", | ||
"device_density": 2.75, | ||
"device_density_dpi": 440, | ||
"device_height_px": 2154, | ||
"device_is_foldable": true, | ||
"device_is_physical": false, | ||
"device_manufacturer": "Google", | ||
"device_model": "sdk_gphone64_arm64", | ||
"device_name": "emu64a", | ||
"device_type": "phone", | ||
"device_width_px": 1080, | ||
"device_locale": "en-US", | ||
"measure_sdk_version": "0.0.1-SNAPSHOT", | ||
"os_name": "android", | ||
"os_version": "33", | ||
"platform": "android", | ||
"network_type": "wifi", | ||
"network_generation": "2g", | ||
"network_provider": "T-Mobile" | ||
}, | ||
"session_id": "f1fd8bb0-e336-410f-9ff5-43d8f355c542", | ||
"timestamp": "2023-10-14T00:55:26.660000000Z" | ||
} |
Oops, something went wrong.