@@ -146,14 +146,21 @@ Rule.prototype.gather = function gather(context, options = {}) {
146
146
performanceTimer . measure (
147
147
'rule_' + this . id + '#gather_axe.utils.isHidden' ,
148
148
markHiddenStart ,
149
- markHiddenEnd
149
+ markHiddenEnd ,
150
+ {
151
+ rule : this . id ,
152
+ type : "rule"
153
+ }
150
154
) ;
151
155
}
152
156
}
153
157
154
158
if ( options . performanceTimer ) {
155
159
performanceTimer . mark ( markEnd ) ;
156
- performanceTimer . measure ( 'rule_' + this . id + '#gather' , markStart , markEnd ) ;
160
+ performanceTimer . measure ( 'rule_' + this . id + '#gather' , markStart , markEnd , {
161
+ rule : this . id ,
162
+ type : "rule"
163
+ } ) ;
157
164
}
158
165
159
166
return elements ;
@@ -368,7 +375,7 @@ Rule.prototype._trackPerformance = function _trackPerformance() {
368
375
* @param {Array } nodes Result of rule.gather
369
376
*/
370
377
Rule . prototype . _logGatherPerformance = function _logGatherPerformance ( nodes ) {
371
- log ( 'gather (' , nodes . length , '):' , performanceTimer . timeElapsed ( ) + 'ms' ) ;
378
+ // log('gather (', nodes.length, '):', performanceTimer.timeElapsed() + 'ms');
372
379
performanceTimer . mark ( this . _markChecksStart ) ;
373
380
} ;
374
381
@@ -383,10 +390,17 @@ Rule.prototype._logRulePerformance = function _logRulePerformance() {
383
390
performanceTimer . measure (
384
391
'runchecks_' + this . id ,
385
392
this . _markChecksStart ,
386
- this . _markChecksEnd
393
+ this . _markChecksEnd ,
394
+ {
395
+ rule : this . id ,
396
+ type : "rule"
397
+ }
387
398
) ;
388
399
389
- performanceTimer . measure ( 'rule_' + this . id , this . _markStart , this . _markEnd ) ;
400
+ performanceTimer . measure ( 'rule_' + this . id , this . _markStart , this . _markEnd , {
401
+ rule : this . id ,
402
+ type : "rule"
403
+ } ) ;
390
404
} ;
391
405
392
406
/**
@@ -444,7 +458,11 @@ Rule.prototype.gatherAndMatchNodes = function gatherAndMatchNodes(
444
458
performanceTimer . measure (
445
459
'rule_' + this . id + '#matches' ,
446
460
markMatchesStart ,
447
- markMatchesEnd
461
+ markMatchesEnd ,
462
+ {
463
+ rule : this . id ,
464
+ type : "rule"
465
+ }
448
466
) ;
449
467
}
450
468
0 commit comments