xtd 0.2.0
Loading...
Searching...
No Matches
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 auto operator =(const xtd::diagnostics::trace_event_cache& tec) -> trace_event_cache& = default;
42
44
49 [[nodiscard]] auto call_stack() const noexcept -> xtd::string;
50
54 [[nodiscard]] auto date_time() const noexcept -> const xtd::date_time&;
55
59 [[nodiscard]] auto logical_operation_stack() const noexcept -> xtd::array<xtd::string>;
60
64 [[nodiscard]] auto process_id() const noexcept -> xtd::int32;
65
69 [[nodiscard]] auto thread_id() const noexcept -> xtd::string;
70
74 [[nodiscard]] auto timestamp() const noexcept -> std::chrono::nanoseconds;
75
79 [[nodiscard]] auto timestamp_milliseconds() const noexcept -> xtd::int64;
80
84 [[nodiscard]] auto timestamp_nanoseconds() const noexcept -> xtd::int64;
85
89 [[nodiscard]] auto timestamp_ticks() const noexcept -> xtd::int64;
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:64
Provides trace event data specific to a thread and a process.
Definition trace_event_cache.hpp:29
auto thread_id() const noexcept -> xtd::string
Gets a unique identifier for the current managed thread.
auto timestamp_ticks() const noexcept -> xtd::int64
Gets the current number of ticks in the timer mechanism, in nanoseconds.
auto timestamp_milliseconds() const noexcept -> xtd::int64
Gets the current number of ticks in the timer mechanism, in milliseconds.
auto date_time() const noexcept -> const xtd::date_time &
Gets the date and time at which the event trace occurred.
auto timestamp() const noexcept -> std::chrono::nanoseconds
Gets the current number of ticks in the timer mechanism.
auto timestamp_nanoseconds() const noexcept -> xtd::int64
Gets the current number of ticks in the timer mechanism, in nanoseconds.
auto logical_operation_stack() const noexcept -> xtd::array< xtd::string >
Gets the correlation data, contained in a stack.
auto process_id() const noexcept -> xtd::int32
Gets the unique identifier of the current process.
trace_event_cache()=default
Initializes a new instance of the trace_event_cache class.
auto call_stack() const noexcept -> xtd::string
Gets the call stack for the current thread.
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:45
Contains xtd::date_time class.
#define core_export_
Define shared library export.
Definition core_export.hpp:13
std::int64_t int64
Represents a 64-bit signed integer.
Definition int64.hpp:23
std::int32_t int32
Represents a 32-bit signed integer.
Definition int32.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.