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}
Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the ba...
Definition array.hpp:61
Represents text as a sequence of character units.
Definition basic_string.hpp:71
Represents an instant in time, typically expressed as a date and time of day.
Definition date_time.hpp:85
Provides trace event data specific to a thread and a process.
Definition trace_event_cache.hpp:29
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:43
#define core_export_
Define shared library export.
Definition core_export.hpp:13
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 namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10