Skip to content
This repository has been archived by the owner on Nov 6, 2023. It is now read-only.

Commit

Permalink
Measure startup performance time in Chrome.
Browse files Browse the repository at this point in the history
  • Loading branch information
pde committed Jan 18, 2014
1 parent e7daa0d commit 4fe21a5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 3 additions & 2 deletions chromium/manifest.json
Expand Up @@ -6,14 +6,15 @@
"scripts": [
"util.js",
"URI.js",
"lru.js",
"lru.js",
"rule_list.js",
"rules.js",
"background.js"
]
},
"default_locale": "en",
"description": "__MSG_about_ext_description__",
"devtools_page": "devtools.html",
"homepage_url": "https://www.eff.org/https-everywhere",
"icons": {
"128": "icon128.png",
Expand All @@ -36,5 +37,5 @@
"<all_urls>"
],
"update_url": "https://www.eff.org/files/https-everywhere-chrome-updates.xml",
"version": "2014.1.3"
"version": "2014.1.17"
}
3 changes: 3 additions & 0 deletions chromium/rules.js
Expand Up @@ -76,6 +76,7 @@ RuleSet.prototype = {

function RuleSets() {
// Load rules into structure
var t1 = new Date().getTime();
this.targets = {};

for(var i = 0; i < rule_list.length; i++) {
Expand All @@ -89,6 +90,8 @@ function RuleSets() {
xhr.send(null);
this.loadRuleSet(xhr);
}
var t2 = new Date().getTime();
log(NOTE,"Loading rulesets took " + (t2 - t1) / 1000.0 + " seconds");
}

RuleSets.prototype = {
Expand Down

0 comments on commit 4fe21a5

Please sign in to comment.