@@ -266,10 +266,10 @@ macro_rules! mark_feedback_time {
266
266
}
267
267
268
268
/// Number of stages in the fuzzer
269
- pub ( crate ) const NUM_STAGES : usize = 4 ;
269
+ pub ( crate ) const NUM_STAGES : usize = 8 ;
270
270
271
271
/// Number of feedback mechanisms to measure for performance
272
- pub ( crate ) const NUM_FEEDBACKS : usize = 4 ;
272
+ pub ( crate ) const NUM_FEEDBACKS : usize = 16 ;
273
273
274
274
/// Client performance statistics
275
275
#[ derive( Serialize , Deserialize , Debug , Copy , Clone ) ]
@@ -296,6 +296,7 @@ pub struct ClientPerfStats {
296
296
/// stages if they are not in use.
297
297
stages_used : [ bool ; NUM_STAGES ] ,
298
298
299
+ // TODO(andrea) use an hashmap and indetify feaures using a &'static str
299
300
/// Clock cycles spent in the the various features of each stage
300
301
stages : [ [ u64 ; PerfFeature :: Count as usize ] ; NUM_STAGES ] ,
301
302
@@ -334,10 +335,10 @@ pub enum PerfFeature {
334
335
/// Time spent in the [`post_exec_observers`](crate::executors::Executor::post_exec_observers) callback
335
336
PostExecObservers = 7 ,
336
337
337
- /// Time spent getting the feedback from [`is_interesting_all `] from all feedbacks
338
+ /// Time spent getting the feedback from [`is_interesting `] from all feedbacks
338
339
GetFeedbackInterestingAll = 8 ,
339
340
340
- /// Time spent getting the feedback from [`is_interesting_all `] from all observers
341
+ /// Time spent getting the feedback from [`is_interesting `] from all objectives
341
342
GetObjectivesInterestingAll = 9 ,
342
343
343
344
/// Used as a counter to know how many elements are in [`PerfFeature`]. Must be the
0 commit comments