-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactored tests to be easier to read and make it simpler to run as w…
…ell with added sites and cpu frequency added to the readings
- Loading branch information
1 parent
5fd8af8
commit 43426bd
Showing
1,852 changed files
with
51,776 additions
and
201 deletions.
There are no files selected for viewing
Binary file not shown.
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
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
1 change: 1 addition & 0 deletions
1
battery_test/browsertime-results/test.mjs/2024-12-03T025409-0500/browsertime.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 @@ | ||
[] |
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,9 @@ | ||
{ | ||
"firefox": { | ||
"android": { | ||
"package": "org.mozilla.firefox", | ||
"activity": "org.mozilla.fenix.IntentReceiverActivity", | ||
"intentArgument": "-e performancetest true" | ||
} | ||
} | ||
} |
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,50 @@ | ||
import re | ||
import datetime | ||
|
||
def parse_and_format_file(input_file, output_file): | ||
with open(input_file, 'r') as file: | ||
lines = file.readlines() | ||
|
||
battery_info_pattern = re.compile(r'Battery level: (\d+)|Charge Counter: (\d+)') | ||
running_tasks_pattern = re.compile(r'Name: ([^|]+) \| CPU%: (\d+\.\d+) \| Time: (\d+:\d+\.\d+)') | ||
timestamp_pattern = re.compile(r'Timestamp: (\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\.\d+N)') | ||
|
||
output_lines = [ | ||
"Components ['GPU', 'CPU'] matched to these names {'GPU': ['G3D'], 'CPU': ['BIG', 'MID', 'LITTLE']}\n" | ||
] | ||
|
||
time_intervals = 15 # Start with 15 seconds | ||
current_battery_level = None | ||
current_charge_counter = None | ||
running_tasks = [] | ||
|
||
for line in lines: | ||
battery_match = battery_info_pattern.search(line) | ||
task_match = running_tasks_pattern.search(line) | ||
timestamp_match = timestamp_pattern.search(line) | ||
|
||
if battery_match: | ||
if battery_match.group(1): | ||
current_battery_level = battery_match.group(1) | ||
if battery_match.group(2): | ||
current_charge_counter = battery_match.group(2) | ||
|
||
elif task_match: | ||
running_tasks.append(f" Name: {task_match.group(1).strip()} | CPU%: {task_match.group(2)} | Time: {task_match.group(3)}\n") | ||
|
||
elif timestamp_match: | ||
if current_battery_level and current_charge_counter: | ||
output_lines.append(f"\n[{time_intervals} seconds]\n") | ||
output_lines.append(f"-Battery info:\n Battery level: {current_battery_level}\n Charge Counter: {current_charge_counter}\n") | ||
output_lines.append("-Running processes:\n") | ||
output_lines.extend(running_tasks) | ||
running_tasks.clear() | ||
time_intervals += 15 | ||
|
||
with open(output_file, 'w') as file: | ||
file.writelines(output_lines) | ||
|
||
# Use the function | ||
input_file = '../chrome_test/s21_output_chrome_video.txt' | ||
output_file = '../chrome_test/s21_output_chrome_video_playback.txt' | ||
parse_and_format_file(input_file, output_file) |
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file added
BIN
+2.51 KB
battery_test/firefox.default/9iksvnsh.default/SiteSecurityServiceState.bin
Binary file not shown.
Binary file not shown.
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 @@ | ||
{"schema":6,"addons":[]} |
Binary file added
BIN
+96 KB
battery_test/firefox.default/9iksvnsh.default/bounce-tracking-protection.sqlite
Binary file not shown.
Binary file not shown.
5 changes: 5 additions & 0 deletions
5
battery_test/firefox.default/9iksvnsh.default/compatibility.ini
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,5 @@ | ||
[Compatibility] | ||
LastVersion=133.0_20241121140525/20241121140525 | ||
LastOSABI=Android_aarch64-gcc3 | ||
LastPlatformDir=/data/app/~~bOrHYvlXuPDJtvfksMEaww==/org.mozilla.firefox-1PyCqPRtBgjLuUiUZkz-dQ==/base.apk | ||
LastAppDir=/data/app/~~bOrHYvlXuPDJtvfksMEaww==/org.mozilla.firefox-1PyCqPRtBgjLuUiUZkz-dQ==/lib/arm64 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+66 Bytes
battery_test/firefox.default/9iksvnsh.default/crashes/store.json.mozlz4
Binary file not shown.
1 change: 1 addition & 0 deletions
1
battery_test/firefox.default/9iksvnsh.default/datareporting/state.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 @@ | ||
{"version":2,"clientID":"df3e3cf9-2f62-4c33-ac6b-9307274f5b66","profileGroupID":"cde92cee-f84e-4b70-8b0a-7ca9d457a1d1"} |
1 change: 1 addition & 0 deletions
1
battery_test/firefox.default/9iksvnsh.default/extension-preferences.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 @@ | ||
{"[email protected]":{"permissions":["internal:privateBrowsingAllowed","internal:svgContextPropertiesAllowed"],"origins":[]},"[email protected]":{"permissions":["internal:privateBrowsingAllowed","internal:svgContextPropertiesAllowed"],"origins":[]},"[email protected]":{"permissions":["internal:privateBrowsingAllowed","internal:svgContextPropertiesAllowed"],"origins":[]},"[email protected]":{"permissions":["internal:privateBrowsingAllowed","internal:svgContextPropertiesAllowed"],"origins":[]},"[email protected]":{"permissions":["internal:privateBrowsingAllowed","internal:svgContextPropertiesAllowed"],"origins":[]},"[email protected]":{"permissions":["internal:privateBrowsingAllowed","internal:svgContextPropertiesAllowed"],"origins":[]}} |
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 @@ | ||
{"schemaVersion":36,"addons":[{"id":"[email protected]","syncGUID":"{c9599a1a-dccd-4d62-903b-75d933b62186}","version":"133.0.20241121.182324","type":"extension","loader":null,"updateURL":null,"installOrigins":null,"manifestVersion":2,"optionsURL":null,"optionsType":null,"optionsBrowserStyle":true,"aboutURL":null,"defaultLocale":{"name":"Mozilla Android Components - Browser Icons","creator":null,"developers":null,"translators":null,"contributors":null},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"embedderDisabled":false,"installDate":1732901230065,"applyBackgroundUpdates":1,"path":null,"skinnable":false,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"strictCompatibility":true,"locales":[],"targetApplications":[{"id":"[email protected]","minVersion":null,"maxVersion":null}],"targetPlatforms":[],"signedDate":null,"seen":true,"dependencies":[],"incognito":"spanning","userPermissions":{"permissions":["geckoViewAddons","nativeMessaging","nativeMessagingFromContent"],"origins":["*://*/*"]},"optionalPermissions":{"permissions":[],"origins":[]},"requestedPermissions":{"permissions":[],"origins":[]},"icons":{},"iconURL":null,"blocklistState":0,"blocklistURL":null,"startupData":null,"hidden":false,"installTelemetryInfo":null,"recommendationState":null,"rootURI":"resource://android/assets/extensions/browser-icons/","location":"app-builtin"},{"id":"[email protected]","syncGUID":"{b41a0edc-5740-4c5b-b45a-72e69e8a681d}","version":"133.4.0","type":"extension","loader":null,"updateURL":null,"installOrigins":null,"manifestVersion":2,"optionsURL":null,"optionsType":null,"optionsBrowserStyle":true,"aboutURL":null,"defaultLocale":{"name":"Web Compatibility Interventions","description":"Urgent post-release fixes for web compatibility.","creator":null,"developers":null,"translators":null,"contributors":null},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"embedderDisabled":false,"installDate":1732901230101,"applyBackgroundUpdates":1,"path":null,"skinnable":false,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"strictCompatibility":true,"locales":[],"targetApplications":[{"id":"[email protected]","minVersion":"102.0","maxVersion":null}],"targetPlatforms":[],"signedDate":null,"seen":true,"dependencies":[],"incognito":"spanning","userPermissions":{"permissions":["mozillaAddons","scripting","tabs","webNavigation","webRequest","webRequestBlocking"],"origins":["<all_urls>"]},"optionalPermissions":{"permissions":[],"origins":[]},"requestedPermissions":{"permissions":[],"origins":[]},"icons":{},"iconURL":null,"blocklistState":0,"blocklistURL":null,"startupData":null,"hidden":false,"installTelemetryInfo":null,"recommendationState":null,"rootURI":"resource://android/assets/extensions/webcompat/","location":"app-builtin"},{"id":"[email protected]","syncGUID":"{d110866f-e1de-4149-a37d-d8da6fb15524}","version":"133.0.20241121.182351","type":"extension","loader":null,"updateURL":null,"installOrigins":null,"manifestVersion":2,"optionsURL":null,"optionsType":null,"optionsBrowserStyle":true,"aboutURL":null,"defaultLocale":{"name":"Mozilla Android Components - Ads Telemetry","creator":null,"developers":null,"translators":null,"contributors":null},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"embedderDisabled":false,"installDate":1732901230216,"applyBackgroundUpdates":1,"path":null,"skinnable":false,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"strictCompatibility":true,"locales":[],"targetApplications":[{"id":"[email protected]","minVersion":null,"maxVersion":null}],"targetPlatforms":[],"signedDate":null,"seen":true,"dependencies":[],"incognito":"spanning","userPermissions":{"permissions":["geckoViewAddons","nativeMessaging","nativeMessagingFromContent"],"origins":["https://*/*"]},"optionalPermissions":{"permissions":[],"origins":[]},"requestedPermissions":{"permissions":[],"origins":[]},"icons":{},"iconURL":null,"blocklistState":0,"blocklistURL":null,"startupData":null,"hidden":false,"installTelemetryInfo":null,"recommendationState":null,"rootURI":"resource://android/assets/extensions/ads/","location":"app-builtin"},{"id":"[email protected]","syncGUID":"{0672c34d-67fb-45ae-9c29-41a201ef7f10}","version":"133.0.20241121.182351","type":"extension","loader":null,"updateURL":null,"installOrigins":null,"manifestVersion":2,"optionsURL":null,"optionsType":null,"optionsBrowserStyle":true,"aboutURL":null,"defaultLocale":{"name":"Mozilla Android Components - Search Telemetry","creator":null,"developers":null,"translators":null,"contributors":null},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"embedderDisabled":false,"installDate":1732901230235,"applyBackgroundUpdates":1,"path":null,"skinnable":false,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"strictCompatibility":true,"locales":[],"targetApplications":[{"id":"[email protected]","minVersion":null,"maxVersion":null}],"targetPlatforms":[],"signedDate":null,"seen":true,"dependencies":[],"incognito":"spanning","userPermissions":{"permissions":["geckoViewAddons","nativeMessaging","nativeMessagingFromContent"],"origins":["https://*/*"]},"optionalPermissions":{"permissions":[],"origins":[]},"requestedPermissions":{"permissions":[],"origins":[]},"icons":{},"iconURL":null,"blocklistState":0,"blocklistURL":null,"startupData":null,"hidden":false,"installTelemetryInfo":null,"recommendationState":null,"rootURI":"resource://android/assets/extensions/search/","location":"app-builtin"},{"id":"[email protected]","syncGUID":"{b5f821ee-df7a-4dbf-b403-583c8ce7d184}","version":"133.0.20241121.182328","type":"extension","loader":null,"updateURL":null,"installOrigins":null,"manifestVersion":2,"optionsURL":null,"optionsType":null,"optionsBrowserStyle":true,"aboutURL":null,"defaultLocale":{"name":"Mozilla Android Components - Firefox Accounts WebChannel","creator":null,"developers":null,"translators":null,"contributors":null},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"embedderDisabled":false,"installDate":1732901236841,"applyBackgroundUpdates":1,"path":null,"skinnable":false,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"strictCompatibility":true,"locales":[],"targetApplications":[{"id":"[email protected]","minVersion":null,"maxVersion":null}],"targetPlatforms":[],"signedDate":null,"seen":true,"dependencies":[],"incognito":"spanning","userPermissions":{"permissions":["mozillaAddons","geckoViewAddons","nativeMessaging","nativeMessagingFromContent"],"origins":["<all_urls>","https://accounts.firefox.com/*","https://stable.dev.lcip.org/*","https://accounts.stage.mozaws.net/*","https://latest.dev.lcip.org/*","https://accounts.firefox.com.cn/*"]},"optionalPermissions":{"permissions":[],"origins":[]},"requestedPermissions":{"permissions":[],"origins":[]},"icons":{},"iconURL":null,"blocklistState":0,"blocklistURL":null,"startupData":null,"hidden":false,"installTelemetryInfo":null,"recommendationState":null,"rootURI":"resource://android/assets/extensions/fxawebchannel/","location":"app-builtin"},{"id":"[email protected]","syncGUID":"{6531621d-a666-4956-ab35-4bacb0aa351e}","version":"133.0.20241121.182331","type":"extension","loader":null,"updateURL":null,"installOrigins":null,"manifestVersion":2,"optionsURL":null,"optionsType":null,"optionsBrowserStyle":true,"aboutURL":null,"defaultLocale":{"name":"Mozilla Android Components - ReaderView","creator":null,"developers":null,"translators":null,"contributors":null},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"embedderDisabled":false,"installDate":1732901236857,"applyBackgroundUpdates":1,"path":null,"skinnable":false,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"strictCompatibility":true,"locales":[],"targetApplications":[{"id":"[email protected]","minVersion":null,"maxVersion":null}],"targetPlatforms":[],"signedDate":null,"seen":true,"dependencies":[],"incognito":"spanning","userPermissions":{"permissions":["mozillaAddons","geckoViewAddons","nativeMessaging","nativeMessagingFromContent","storage","tabs"],"origins":["<all_urls>"]},"optionalPermissions":{"permissions":[],"origins":[]},"requestedPermissions":{"permissions":[],"origins":[]},"icons":{},"iconURL":null,"blocklistState":0,"blocklistURL":null,"startupData":null,"hidden":false,"installTelemetryInfo":null,"recommendationState":null,"rootURI":"resource://android/assets/extensions/readerview/","location":"app-builtin"}]} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.