xtd 0.2.0
Loading...
Searching...
No Matches
trace_event_cache.h
Go to the documentation of this file.
1
4#pragma once
5#include <string>
6#include <vector>
7#include "../date_time.h"
8#include "../object.h"
9#include "../ustring.h"
10
12namespace xtd {
14 namespace diagnostics {
29 public:
31
34 trace_event_cache() = default;
36
39 trace_event_cache& operator =(const trace_event_cache& tec) = default;
41
43
48 xtd::ustring call_stack() const noexcept;
49
53 const xtd::date_time& date_time() const noexcept;
54
58 std::vector<xtd::ustring> logical_operation_stack() const noexcept;
59
63 int32 process_id() const noexcept;
64
68 xtd::ustring thread_id() const noexcept;
69
73 std::chrono::nanoseconds timestamp() const noexcept;
74
78 int64 timestamp_milliseconds() const noexcept;
79
83 int64 timestamp_nanoseconds() const noexcept;
84
88 int64 timestamp_ticks() const noexcept;
90
91 private:
92 mutable xtd::date_time date_time_ = xtd::date_time::min_value;
93 };
94 }
95}
Represents an instant in time, typically expressed as a date and time of day.
Definition date_time.h:79
Provides trace event data specific to a thread and a process.
Definition trace_event_cache.h:28
xtd::ustring 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.h:32
Represents text as a sequence of UTF-8 code units.
Definition ustring.h:47
#define core_export_
Define shared library export.
Definition core_export.h:13
int_least64_t int64
Represents a 64-bit signed integer.
Definition types.h:142
int_least32_t int32
Represents a 32-bit signed integer.
Definition types.h:131
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10