@@ -146,14 +146,21 @@ Rule.prototype.gather = function gather(context, options = {}) {
146146 performanceTimer . measure (
147147 'rule_' + this . id + '#gather_axe.utils.isHidden' ,
148148 markHiddenStart ,
149- markHiddenEnd
149+ markHiddenEnd ,
150+ {
151+ rule : this . id ,
152+ type : "rule"
153+ }
150154 ) ;
151155 }
152156 }
153157
154158 if ( options . performanceTimer ) {
155159 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+ } ) ;
157164 }
158165
159166 return elements ;
@@ -368,7 +375,7 @@ Rule.prototype._trackPerformance = function _trackPerformance() {
368375 * @param {Array } nodes Result of rule.gather
369376 */
370377Rule . prototype . _logGatherPerformance = function _logGatherPerformance ( nodes ) {
371- log ( 'gather (' , nodes . length , '):' , performanceTimer . timeElapsed ( ) + 'ms' ) ;
378+ // log('gather (', nodes.length, '):', performanceTimer.timeElapsed() + 'ms');
372379 performanceTimer . mark ( this . _markChecksStart ) ;
373380} ;
374381
@@ -383,10 +390,17 @@ Rule.prototype._logRulePerformance = function _logRulePerformance() {
383390 performanceTimer . measure (
384391 'runchecks_' + this . id ,
385392 this . _markChecksStart ,
386- this . _markChecksEnd
393+ this . _markChecksEnd ,
394+ {
395+ rule : this . id ,
396+ type : "rule"
397+ }
387398 ) ;
388399
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+ } ) ;
390404} ;
391405
392406/**
@@ -444,7 +458,11 @@ Rule.prototype.gatherAndMatchNodes = function gatherAndMatchNodes(
444458 performanceTimer . measure (
445459 'rule_' + this . id + '#matches' ,
446460 markMatchesStart ,
447- markMatchesEnd
461+ markMatchesEnd ,
462+ {
463+ rule : this . id ,
464+ type : "rule"
465+ }
448466 ) ;
449467 }
450468
0 commit comments