mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-15 07:22:28 +02:00
Fine tune reporting of CFE internals
This commit is contained in:
parent
a0a9497b4a
commit
7da0ccd55b
@ -1127,28 +1127,31 @@ FilterContainer.prototype.getFilterCount = function() {
|
|||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
||||||
FilterContainer.prototype.dump = function() {
|
FilterContainer.prototype.dump = function() {
|
||||||
|
let genericCount = 0;
|
||||||
|
for ( const i of [ 'simple', 'complex' ] ) {
|
||||||
|
for ( const j of [ 'id', 'cl' ] ) {
|
||||||
|
genericCount += this.lowlyGeneric[j][i].size;
|
||||||
|
}
|
||||||
|
}
|
||||||
return [
|
return [
|
||||||
'Cosmetic Filtering Engine internals:',
|
'Cosmetic Filtering Engine internals:',
|
||||||
`specific counts: ${this.specificFilters.size}`,
|
`specific: ${this.specificFilters.size}`,
|
||||||
'generic counts:',
|
`generic: ${genericCount}`,
|
||||||
` lowly.id.simple: ${this.lowlyGeneric.id.simple.size}`,
|
`+ lowly.id: ${this.lowlyGeneric.id.simple.size + this.lowlyGeneric.id.complex.size}`,
|
||||||
` lowly.class.simple: ${this.lowlyGeneric.cl.simple.size}`,
|
` + simple: ${this.lowlyGeneric.id.simple.size}`,
|
||||||
` lowly.id.complex: ${this.lowlyGeneric.id.complex.size}`,
|
...Array.from(this.lowlyGeneric.id.simple).map(a => ` ###${a}`),
|
||||||
` lowly.class.complex: ${this.lowlyGeneric.cl.complex.size}`,
|
` + complex: ${this.lowlyGeneric.id.complex.size}`,
|
||||||
` highly.simple: ${this.highlyGeneric.simple.dict.size}`,
|
...Array.from(this.lowlyGeneric.id.complex.values()).map(a => ` ##${a}`),
|
||||||
` highly.complex: ${this.highlyGeneric.complex.dict.size}`,
|
`+ lowly.class: ${this.lowlyGeneric.cl.simple.size + this.lowlyGeneric.cl.complex.size}`,
|
||||||
`+ lowly.id.simple: ${this.lowlyGeneric.id.simple.size}`,
|
` + simple: ${this.lowlyGeneric.cl.simple.size}`,
|
||||||
...Array.from(this.lowlyGeneric.id.simple).map(a => ` ###${a}`),
|
...Array.from(this.lowlyGeneric.cl.simple).map(a => ` ##.${a}`),
|
||||||
`+ lowly.id.complex: ${this.lowlyGeneric.id.complex.size}`,
|
` + complex: ${this.lowlyGeneric.cl.complex.size}`,
|
||||||
...Array.from(this.lowlyGeneric.id.complex.values()).map(a => ` ###${a}`),
|
...Array.from(this.lowlyGeneric.cl.complex.values()).map(a => ` ##${a}`),
|
||||||
`+ lowly.class.simple: ${this.lowlyGeneric.cl.simple.size}`,
|
`+ highly: ${this.highlyGeneric.simple.dict.size + this.highlyGeneric.complex.dict.size}`,
|
||||||
...Array.from(this.lowlyGeneric.cl.simple).map(a => ` ##.${a}`),
|
` + highly.simple: ${this.highlyGeneric.simple.dict.size}`,
|
||||||
`+ lowly.class.complex: ${this.lowlyGeneric.cl.complex.size}`,
|
...Array.from(this.highlyGeneric.simple.dict).map(a => ` ##${a}`),
|
||||||
...Array.from(this.lowlyGeneric.cl.complex.values()).map(a => ` ##.${a}`),
|
` + highly.complex: ${this.highlyGeneric.complex.dict.size}`,
|
||||||
`+ highly.simple: ${this.highlyGeneric.simple.dict.size}`,
|
...Array.from(this.highlyGeneric.complex.dict).map(a => ` ##${a}`),
|
||||||
...Array.from(this.highlyGeneric.simple.dict).map(a => ` ##${a}`),
|
|
||||||
`+ highly.complex: ${this.highlyGeneric.complex.dict.size}`,
|
|
||||||
...Array.from(this.highlyGeneric.complex.dict).map(a => ` ##${a}`),
|
|
||||||
].join('\n');
|
].join('\n');
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user