Third Party Integration - Using PostSharp with Loupe - Best Practices
The Loupe Agent for PostSharp is a powerful tool with many uses in development, testing and in production.
Know what people are doing with your application
- Use GFeature to track feature usage by applying it to a layer in your application.
Pick a layer where the overhead of recording the feature information is trivial compared to the work done in the feature.
Finding Troublesome Defects
- Make sure you have GException applied everywhere.
Many rare problems start as an unexpected exception - it may be of a different type than you expect or in a place you never had an opportunity to verify your exception handling.
- Use GField to track changes to critical state information such the number of concurrent worker threads being used.
Finding Performance Problems
If your application performance is not what you were expecting, don't guess where the time is going.
- Apply GTimer to suspected slow areas and key checkpoints in the application to narrow down where time is being used.
- Use GTimer instead of GFeature for slightly faster performance in cases where you’re interested in tracking method execution but do not require details on parameters and return value for each call.
- Make sure you age GFeature set up for key features to track the performance relative to the specific input values to identify scenarios where performance changes substantially based on data.