Provides trace event data specific to a thread and a process.
Provides trace event data specific to a thread and a process.
Definition trace_event_cache.hpp:30
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:42
#define core_export_
Define shared library export.
Definition core_export.hpp:13
- Inheritance
- xtd::object → xtd::diagnostics::trace_event_cache
- Header
#include <xtd/diagnostics/trace_event_cache>
- Namespace
- xtd::diagnostics
- Library
- xtd.core
|
| object ()=default |
| Create a new instance of the ultimate base class object.
|
|
virtual bool | equals (const object &obj) const noexcept |
| Determines whether the specified object is equal to the current object.
|
|
virtual size_t | get_hash_code () const noexcept |
| Serves as a hash function for a particular type.
|
|
virtual type_object | get_type () const noexcept |
| Gets the type of the current instance.
|
|
template<typename object_t > |
xtd::uptr< object_t > | memberwise_clone () const |
| Creates a shallow copy of the current object.
|
|
virtual xtd::string | to_string () const noexcept |
| Returns a xtd::string that represents the current object.
|
|
template<typename object_a_t , typename object_b_t > |
static bool | equals (const object_a_t &object_a, const object_b_t &object_b) noexcept |
| Determines whether the specified object instances are considered equal.
|
|
template<typename object_a_t , typename object_b_t > |
static bool | reference_equals (const object_a_t &object_a, const object_b_t &object_b) noexcept |
| Determines whether the specified object instances are the same instance.
|
|
◆ trace_event_cache()
xtd::diagnostics::trace_event_cache::trace_event_cache |
( |
| ) |
|
|
default |
◆ call_stack()
xtd::string xtd::diagnostics::trace_event_cache::call_stack |
( |
| ) |
const |
|
noexcept |
Gets the call stack for the current thread.
- Returns
- string A string containing stack trace information. This value can be an empty string ("").
◆ date_time()
const xtd::date_time & xtd::diagnostics::trace_event_cache::date_time |
( |
| ) |
const |
|
noexcept |
Gets the date and time at which the event trace occurred.
- Returns
- DateTime A DateTime structure whose value is a date and time expressed in Coordinated Universal Time (UTC).
◆ logical_operation_stack()
std::vector< xtd::string > xtd::diagnostics::trace_event_cache::logical_operation_stack |
( |
| ) |
const |
|
noexcept |
Gets the correlation data, contained in a stack.
- Returns
- A Stack containing correlation data.
◆ process_id()
int32 xtd::diagnostics::trace_event_cache::process_id |
( |
| ) |
const |
|
noexcept |
Gets the unique identifier of the current process.
- Returns
- int32 The system-generated unique identifier of the current process.
◆ thread_id()
xtd::string xtd::diagnostics::trace_event_cache::thread_id |
( |
| ) |
const |
|
noexcept |
Gets a unique identifier for the current managed thread.
- Returns
- string A string that represents a unique integer identifier for this managed thread.
◆ timestamp()
std::chrono::nanoseconds xtd::diagnostics::trace_event_cache::timestamp |
( |
| ) |
const |
|
noexcept |
Gets the current number of ticks in the timer mechanism.
- Returns
- std::chrono::nanoseconds The nanoseconds counter value of the underlying timer mechanism.
◆ timestamp_milliseconds()
int64 xtd::diagnostics::trace_event_cache::timestamp_milliseconds |
( |
| ) |
const |
|
noexcept |
Gets the current number of ticks in the timer mechanism, in milliseconds.
- Returns
- int64 The millisecond counter value of the underlying timer mechanism.
◆ timestamp_nanoseconds()
int64 xtd::diagnostics::trace_event_cache::timestamp_nanoseconds |
( |
| ) |
const |
|
noexcept |
Gets the current number of ticks in the timer mechanism, in nanoseconds.
- Returns
- int64 The nanosecond counter value of the underlying timer mechanism.
◆ timestamp_ticks()
int64 xtd::diagnostics::trace_event_cache::timestamp_ticks |
( |
| ) |
const |
|
noexcept |
Gets the current number of ticks in the timer mechanism, in nanoseconds.
- Returns
- int64 The tick counter value of the underlying timer mechanism.
The documentation for this class was generated from the following file: