An interesting question here: In my current project, we use a custom performance monitoring kit that is very highly configured (it uses Perfmon, so we have to manually register each performance counter. For each method there is one performance counter that we monitor, and there are many of them).
I was wondering if there are any tools that would allow me to analyze the assembly of the project, find all the methods that create an instance of the XClass class, and then write them to a file? This would allow me to reduce the amount of manual configuration that I need to do by a wide margin.
Thanks Ed
EDIT
Sorry, “writing them to a file” was a little far-fetched: indeed, I need to reformat them using some additional data and write them in a configuration-specific XML format. It would be better if I could code it, so it can be configured as a build task (therefore, I do not need to run it manually), and any future changes can be made easily and documented, etc.
source
share