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 554b4e1 commit fdfeaa8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 4 additions & 4 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 @@ -28,7 +29,6 @@
"default_popup": "popup.html",
"default_title": "__MSG_about_ext_name__"
},
"devtools_page": "devtools.html",
"permissions": [
"webRequest",
"webRequestBlocking",
Expand All @@ -37,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 fdfeaa8

Please sign in to comment.