Previous: EZ Trace, Up: EZ Example Files


6.3 Profiling (ez_profile_branch_pred.cc and ez_profile_diff.cc)

These file demonstrate the use of the Profile class. File ez_profile_branch_pred.cc uses profiling to find which of two predictors works best for each branch in a training run, and in a reference run uses that better predictor. File ez_profile_diff.cc shows how to use profiling to find branches whos prediction accuracy changed the most from one run to another.