xtd 0.2.0
trace_event_cache.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "../array.hpp"
6#include "../date_time.hpp"
7#include "../object.hpp"
8#include "../string.hpp"
9
11namespace xtd {
13 namespace diagnostics {
30 public:
32
35 trace_event_cache() = default;
37
40 trace_event_cache& operator =(const trace_event_cache& tec) = default;
42
44
49 xtd::string call_stack() const noexcept;
50
54 const xtd::date_time& date_time() const noexcept;
55
59 xtd::array<xtd::string> logical_operation_stack() const noexcept;
60
64 int32 process_id() const noexcept;
65
69 xtd::string thread_id() const noexcept;
70
74 std::chrono::nanoseconds timestamp() const noexcept;
75
79 int64 timestamp_milliseconds() const noexcept;
80
84 int64 timestamp_nanoseconds() const noexcept;
85
89 int64 timestamp_ticks() const noexcept;
91
92 private:
93 mutable xtd::date_time date_time_ = xtd::date_time::min_value;
94 };
95 }
96}
Contains xtd::array class.
Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the ba...
Definition array.hpp:61
xtd::array< xtd::string > logical_operation_stack() const noexcept
Gets the correlation data, contained in a stack.
xtd::string thread_id() const noexcept
Gets a unique identifier for the current managed thread.
std::chrono::nanoseconds timestamp() const noexcept
Gets the current number of ticks in the timer mechanism.
const xtd::date_time & date_time() const noexcept
Gets the date and time at which the event trace occurred.
int64 timestamp_milliseconds() const noexcept
Gets the current number of ticks in the timer mechanism, in milliseconds.
int64 timestamp_ticks() const noexcept
Gets the current number of ticks in the timer mechanism, in nanoseconds.
int32 process_id() const noexcept
Gets the unique identifier of the current process.
int64 timestamp_nanoseconds() const noexcept
Gets the current number of ticks in the timer mechanism, in nanoseconds.
xtd::string call_stack() const noexcept
Gets the call stack for the current thread.
trace_event_cache()=default
Initializes a new instance of the trace_event_cache class.
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:44
Contains xtd::date_time class.
#define core_export_
Define shared library export.
Definition core_export.hpp:13
xtd::basic_string< char > string
Represents text as a sequence of UTF-8 code units.
Definition __string_definitions.hpp:43
int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:23
int64_t int64
Represents a 64-bit signed integer.
Definition int64.hpp:23
The xtd::diagnostics namespace provides classes that allow you to interact with system processes,...
Definition assert_dialog_result.hpp:10
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
Contains xtd::object class.
Contains xtd::string alias.