xtd 0.2.0
Loading...
Searching...
No Matches
xtd::diagnostics Namespace Reference

Definition

The xtd::diagnostics namespace provides classes that allow you to interact with system processes, event logs, and performance counters.

Classes

class  boolean_switch
 Provides a simple on/off switch that controls debugging and tracing output. More...
 
class  console_trace_listener
 Directs tracing or debugging output to either the standard output or the standard error stream. More...
 
class  data_received_event_args
 Provides data for the xtd::diagnostics::process::output_data_received and xtd::diagnostics::process::error_data_received events. More...
 
class  debug
 Provides a set of methods and properties that help you debug the execution of your code. This class cannot be inherited. More...
 
class  debugger
 Enables communication with a debugger. This class cannot be inherited. More...
 
class  default_trace_listener
 Provides the default output methods and behavior for tracing. More...
 
class  event_type_filter
 Indicates whether a listener should trace based on the event type. More...
 
class  ostream_trace_listener
 Directs tracing or debugging output to a std::ostream, such as std::fstream, std::stream... More...
 
class  process
 Provides access to local and remote processes and enables you to start and stop local system processes. More...
 
class  process_start_info
 Specifies a set of values that are used when you start a process. More...
 
class  source_filter
 Indicates whether a listener should trace a message based on the source of a trace. More...
 
class  source_switch
 Provides a multilevel switch to control tracing and debug output without recompiling your code. More...
 
class  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  stack_trace
 Represents a stack trace, which is an ordered collection of one or more stack frames. More...
 
class  stopwatch
 Provides a set of methods and properties that you can use to accurately measure elapsed time. More...
 
class  switch_base
 Provides an abstract base class to create new debugging and tracing switches. More...
 
class  trace
 Provides a set of methods and properties that help you debug the execution of your code. This class cannot be inherited. More...
 
class  trace_event_cache
 Provides trace event data specific to a thread and a process. More...
 
class  trace_filter
 Provides the base class for trace filter implementations. More...
 
class  trace_listener
 Provides the abstract base class for the listeners who monitor trace and debug output. More...
 
class  trace_listener_collection
 Represents a collection of xtd::diagnostics::trace_listener. More...
 
class  trace_source
 Provides a set of methods and properties that enable applications to trace the execution of code and associate trace messages with their source. More...
 
class  trace_switch
 Provides a multilevel switch to control tracing and debug output without recompiling your code. More...
 

Alias

using data_received_event_handler = xtd::delegate< void(xtd::object &sender, const xtd::diagnostics::data_received_event_args &e)>
 Represents the method that will handle the xtd::diagnostics::process::output_data_received and xtd::diagnostics::process::error_data_received event of a Process.
 

Enumerations

enum class  assert_dialog_result {
  assert_dialog_result::abort ,
  assert_dialog_result::retry ,
  assert_dialog_result::ignore
}
 Specifies identifiers to indicate the return value of an assert dialog box. More...
 
enum class  process_priority_class {
  process_priority_class::normal ,
  process_priority_class::idle ,
  process_priority_class::high ,
  process_priority_class::real_time ,
  process_priority_class::below_normal ,
  process_priority_class::above_normal
}
 Indicates the priority that the system associates with a process. This value, together with the priority value of each thread of the process, determines each thread's base priority level. More...
 
enum class  process_window_style {
  process_window_style::normal ,
  process_window_style::hidden ,
  process_window_style::minimized ,
  process_window_style::maximized
}
 Specified how a new window should appear when the system starts a process. More...
 
enum class  source_levels {
  source_levels::off ,
  source_levels::critical ,
  source_levels::error ,
  source_levels::warning ,
  source_levels::information ,
  source_levels::verbose ,
  source_levels::activity_tracing ,
  source_levels::all
}
 Specifies the levels of trace messages filtered by the source switch and event type filter. This enumeration has a flags attribute that allows a bitwise combination of its member values. More...
 
enum class  trace_event_type {
  trace_event_type::critical ,
  trace_event_type::error ,
  trace_event_type::warning ,
  trace_event_type::information ,
  trace_event_type::verbose ,
  trace_event_type::start ,
  trace_event_type::stop ,
  trace_event_type::suspend ,
  trace_event_type::resume ,
  trace_event_type::transfer
}
 Identifies the type of event that has caused the trace. More...
 
enum class  trace_level {
  trace_level::off ,
  trace_level::error ,
  trace_level::warning ,
  trace_level::info ,
  trace_level::verbose
}
 Specifies what messages to output for the debug, trace and trace_switch classes. More...
 
enum class  trace_options {
  trace_options::none ,
  trace_options::logical_operation_stack ,
  trace_options::date_time ,
  trace_options::timestamp ,
  trace_options::process_id ,
  trace_options::thread_id ,
  trace_options::callstack
}
 Specifies trace data options to be written to the trace output. More...