Category Archives: ETW

Instrumenting Your Application to Measure its Performance Part 7 Injecting EventSource into WCF Service Calls

  The last article demonstrated how to use Unity Interception to inject code to emit ETW traces before and after calling a method. Using this technique is a good way to separate tracing / logging concerns from a class method … Continue reading

Posted in ETW | Tagged | 2 Comments

Instrumenting Your Application to Measure its Performance Part 6 Injecting EventSource Using AOP

  In the last article, you learned how to wrap your code with a wrapper / envelope class contained in a using statement, which quickly instruments a block of code with enter / exit traces. You can find the source … Continue reading

Posted in ETW | Tagged | 1 Comment

Instrumenting Your Application to Measure its Performance Part 5 Wrapping your code with EventSource

  In the last article, you learned how to use keywords to filter for specific events in an application. Using filtering is one way to narrow listening for events within a specific layer of a specific context in an application. … Continue reading

Posted in ETW | Tagged | 2 Comments

Instrumenting Your Application to Measure its Performance Part 4 Using EventKeywords for Event Filtering

  Introduction In the last article, I demonstrated how to implement a class derived from EventSource for instrumenting a sales application called BizGear. In this article I’ll build upon that implementation to show you how to use the event keyword … Continue reading

Posted in ETW | Tagged | Leave a comment

Instrumenting Your Application to Measure its Performance Part 3 An introduction to EventSource, Logman, and PerfView

  This article discusses starting points for application instrumentation. You can find the source code to this article in my GitHub repository  BizGear EventSource is a class introduced in NET 4.5. Although installed as part of NET 4.5, you can … Continue reading

Posted in ETW | Tagged , | Leave a comment

Instrumenting Your Application to Measure its Performance Part 2 An Overview of the ETW subsystem

  The ETW subsystem has been written about extensively in other blogs and magazine articles. What I wish to accomplish here is provide a brief overview of the ETW subsystem to provide a common context for the future articles on … Continue reading

Posted in ETW | Tagged , | 1 Comment

Instrumenting Your Application to Measure its Performance Part 1 Introduction

  A common problem I’ve experienced in past projects is measuring the performance of some part of an application. Have you ever refactored a routine and needed to measure the performance difference between the original and the new code? Has … Continue reading

Posted in ETW | Tagged , | 1 Comment

Instrumenting Your Application to Measure its Performance Roadmap

  This is roadmap to a series articles about instrumenting your application using the NET 4.5 EventSource class, the ETW subsystem, and using out of the box utilities to acquire performance data. You can find the code for these articles … Continue reading

Posted in ETW | Tagged | 1 Comment