mirror of https://github.com/gorhill/uBlock.git
move profiling code to platform-specific
This commit is contained in:
parent
780f89d999
commit
bbb2d8d1ff
|
@ -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 || ['<all_urls>'],
|
||||
'types': this.onBeforeRequest.types || []
|
||||
|
|
|
@ -366,12 +366,6 @@ vAPI.net.onBeforeRequest = {
|
|||
],
|
||||
extra: [ 'blocking' ],
|
||||
callback: onBeforeRequest
|
||||
//function(details) {
|
||||
// quickProfiler.start('onBeforeRequest');
|
||||
// var r = onBeforeRequest(details);
|
||||
// quickProfiler.stop();
|
||||
// return r;
|
||||
//},
|
||||
};
|
||||
|
||||
vAPI.net.onBeforeSendHeaders = {
|
||||
|
@ -384,12 +378,6 @@ vAPI.net.onBeforeSendHeaders = {
|
|||
],
|
||||
extra: [ 'blocking', 'requestHeaders' ],
|
||||
callback: onBeforeSendHeaders
|
||||
//function(details) {
|
||||
// quickProfiler.start('onBeforeSendHeaders');
|
||||
// var r = onBeforeSendHeaders(details);
|
||||
// quickProfiler.stop();
|
||||
// return r;
|
||||
//},
|
||||
};
|
||||
|
||||
vAPI.net.onHeadersReceived = {
|
||||
|
|
Loading…
Reference in New Issue