xtd - Reference Guide 0.2.0
diagnostics

Definition

diagnostics definitions.

Collaboration diagram for diagnostics:

Classes

class  xtd::diagnostics::console_trace_listener
 Directs tracing or debugging output to either the standard output or the standard error stream. More...
 
class  xtd::diagnostics::debug
 Provides a set of methods and properties that help you debug the execution of your code. This class cannot be inherited. More...
 
class  xtd::diagnostics::debugger
 Enables communication with a debugger. This class cannot be inherited. More...
 
class  xtd::diagnostics::default_trace_listener
 Provides the default output methods and behavior for tracing. More...
 
class  xtd::diagnostics::ostream_trace_listener
 Directs tracing or debugging output to a std::ostream, such as std::fstream, std::stream... More...
 
class  xtd::diagnostics::process
 Provides access to local and remote processes and enables you to start and stop local system processes. More...
 
class  xtd::diagnostics::stack_frame
 Provides information about a xtd::diagnostics::stack_frame, which represents a function call on the call stack for the current thread. More...
 
class  xtd::diagnostics::stack_trace
 Represents a stack trace, which is an ordered collection of one or more stack frames. More...
 
class  xtd::diagnostics::stopwatch
 Provides a set of methods and properties that you can use to accurately measure elapsed time. More...
 
class  xtd::diagnostics::trace
 Provides a set of methods and properties that help you debug the execution of your code. This class cannot be inherited. More...
 

Enumerations

enum  xtd::diagnostics::trace_options {
  xtd::diagnostics::trace_options::none = 0,
  xtd::diagnostics::trace_options::logical_operation_stack = 0b1,
  xtd::diagnostics::trace_options::date_time = 0b10,
  xtd::diagnostics::trace_options::timestamp = 0b100,
  xtd::diagnostics::trace_options::process_id = 0b1000,
  xtd::diagnostics::trace_options::thread_id = 0b10000,
  xtd::diagnostics::trace_options::callstack = 0b100000
}
 Specifies trace data options to be written to the trace output. More...
 

Enumeration Type Documentation

◆ trace_options

#include <xtd.core/include/xtd/diagnostics/trace_options.h>

Specifies trace data options to be written to the trace output.

enum class trace_options
Namespace
xtd::diagnostics
Library
xtd.core
Remarks
This enumeration is used by trace listeners to determine which options, or elements, should be included in the trace output. Trace listeners store the trace options in the trace_output_options property.
Enumerator
none 

Do not write any elements.

logical_operation_stack 

Write the logical operation stack, which is represented by the return value of the CorrelationManager.LogicalOperationStack property.

date_time 

Write the date and time.

timestamp 

Write the timestamp, which is represented by the return value of the GetTimestamp method.

process_id 

Write the process identity, which is represented by the return value of the Process.Id property.

thread_id 

Write the thread identity, which is represented by the return value of the Thread.ManagedThreadId property for the current thread.

callstack 

Write the call stack, which is represented by the return value of the Environment.StackTrace property.