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 <string>
6#include <vector>
7#include "../date_time.hpp"
8#include "../object.hpp"
9#include "../string.hpp"
10
12namespace xtd {
14 namespace diagnostics {
31 public:
33
36 trace_event_cache() = default;
38
41 trace_event_cache& operator =(const trace_event_cache& tec) = default;
43
45
50 xtd::string call_stack() const noexcept;
51
55 const xtd::date_time& date_time() const noexcept;
56
60 std::vector<xtd::string> logical_operation_stack() const noexcept;
61
65 int32 process_id() const noexcept;
66
70 xtd::string thread_id() const noexcept;
71
75 std::chrono::nanoseconds timestamp() const noexcept;
76
80 int64 timestamp_milliseconds() const noexcept;
81
85 int64 timestamp_nanoseconds() const noexcept;
86
90 int64 timestamp_ticks() const noexcept;
92
93 private:
94 mutable xtd::date_time date_time_ = xtd::date_time::min_value;
95 };
96 }
97}
Represents text as a sequence of character units.
Definition basic_string.hpp:79
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:30
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:42
#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