W

 

Watch Thread

When we do tracing and logging much of computational activity is not visible. For live tracing and debugging this can be alleviated by adding Watch Threads. These are selected memory locations that may or may not be formatted according to specific data structures and are inspected at each main trace message occurrence or after specific intervals or events:

This analysis pattern is different from State Dump, which is about intrinsic tracing where the developer of logging statements already incorporated variable watch in the source code. Watch Threads are completely independent of original tracing and may be added independently. Counter Value is the simplest example of Watch Thread if done externally because the former usually doesn’t require source code and often means some OS or Module Variable151 independent of product internals. Watch Thread is also similar to Data Flow pattern where specific data we are interested in is a part of every trace message.

 

Working Set

When we analyze traces and logs, we work with only a small subset of log messages. We call any such current subset Working Set by analogy with working sets in operating system memory paging implementations:

This analysis pattern can also be reconciled with an operadic approach to trace and log analysis by chaining appropriate diagnostic operads152 from the original traces to the desired working sets:

 

 

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset