Gemstone Diagnostics Library
Show/Hide TOC

# ThreadPoolTrace Class

Executes a trace on the ThreadPool for all callbacks currently queued. This will not include work items that have a time delayed callback.

## Definition

Namespace: Gemstone.Diagnostics
Assembly: Gemstone.Diagnostics (in Gemstone.Diagnostics.dll) Version: 1.0.159 -- Release Build+4c4b59bd26594faae24027f93140de44748dfe1d
C#
View Source Request Example

    public static class ThreadPoolTrace

VB
View Source Request Example

    Public NotInheritable Class ThreadPoolTrace

C++
View Source Request Example

    public ref class ThreadPoolTrace abstract sealed

JavaScript
View Source Request Example

    Gemstone.Diagnostics.ThreadPoolTrace = function();

    Type.createClass(
    	'Gemstone.Diagnostics.ThreadPoolTrace');

Inheritance
  Object ThreadPoolTrace

## Remarks

This class heavily relies on reflection to get the ThreadPool queue. Therefore it is very unlikely to work in MONO and can break if Microsoft changes any of the member names or how the ThreadPool works. In this case WorksInThisRuntime will be set to false and GetTrace(StringBuilder) will return "Not Supported"

## Properties

WorksInThisRuntime | Indicates that this trace works in the runtime version of .NET.

## Methods

GetTrace | Traces all queued items on the ThreadPool.

## See Also

#### Reference

Gemstone.Diagnostics Namespace