I want to do some benchmarking of a C# process, but I don\'t want to use time as my vector - I want to count the number of IL instructions that get executed in a particular
I use the Code Metrics add in to Reflector
The CodeMetrics add-in analyses and computes several code quality metrics on your assemblies. This add-in uses Reflector to compute classic metrics such as cyclomatic complexity or more straightforward ones such as the number of local variables in a method. All results can be saved to a file.
Install the plugin. Select an assembly and load method metrics. It will show you a grid with CodeSize, CyclomaticComplexity, # of Instruction, etc.