From 754aa6cd8b28e49c98ef6baf66f6f4c5123a2c15 Mon Sep 17 00:00:00 2001 From: gorhill Date: Tue, 3 Feb 2015 18:40:56 -0500 Subject: [PATCH] move profiling code to platform-specific --- platform/chromium/vapi-background.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/platform/chromium/vapi-background.js b/platform/chromium/vapi-background.js index 3a63109..a993347 100644 --- a/platform/chromium/vapi-background.js +++ b/platform/chromium/vapi-background.js @@ -477,6 +477,12 @@ vAPI.net.registerListeners = function() { }; chrome.webRequest.onBeforeRequest.addListener( onBeforeRequest, + //function(details) { + // quickProfiler.start('onBeforeRequest'); + // var r = onBeforeRequest(details); + // quickProfiler.stop(); + // return r; + //}, { 'urls': this.onBeforeRequest.urls || [''], 'types': this.onBeforeRequest.types || []