1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-03 09:39:38 +02:00

Merge launchFromSelfie into launchToReadiness

This commit is contained in:
Raymond Hill 2021-12-08 13:43:02 -05:00
parent 43d8f52083
commit c71b7c7a42
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
2 changed files with 5 additions and 4 deletions

View File

@ -215,8 +215,7 @@ const µBlock = { // jshint ignore:line
readyToFilter: false,
supportStats: {
launchToReadiness: 0,
launchFromSelfie: false,
launchToReadiness: '',
},
pageStores: new Map(),

View File

@ -429,7 +429,6 @@ let selfieIsValid = false;
try {
selfieIsValid = await µb.selfieManager.load();
if ( selfieIsValid === true ) {
µb.supportStats.launchFromSelfie = true;
ubolog(`Selfie ready ${Date.now()-vAPI.T0} ms after launch`);
}
} catch (ex) {
@ -507,7 +506,10 @@ browser.runtime.onUpdateAvailable.addListener(details => {
}
});
µb.supportStats.launchToReadiness = Date.now() - vAPI.T0;
µb.supportStats.launchToReadiness = `${Date.now() - vAPI.T0} ms`;
if ( selfieIsValid ) {
µb.supportStats.launchToReadiness += ' (selfie)';
}
ubolog(`All ready ${µb.supportStats.launchToReadiness} ms after launch`);
// <<<<< end of private scope