xtd 0.2.0
trace_event_cache.h
Go to the documentation of this file.
1 #pragma once
5 #include <string>
6 #include <vector>
7 #include "../date_time.h"
8 #include "../object.h"
9 #include "../ustring.h"
10 
12 namespace xtd {
14  namespace diagnostics {
28  class core_export_ trace_event_cache : public xtd::object {
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 }
Write the logical operation stack, which is represented by the return value of the CorrelationManager...
Write the thread identity, which is represented by the return value of the Thread.ManagedThreadId property for the current thread.
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Provides trace event data specific to a thread and a process.
Definition: trace_event_cache.h:28
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:46
Represents an instant in time, typically expressed as a date and time of day.
Definition: date_time.h:78
static const date_time min_value
Represents the smallest possible value of xtd::date_time. This field is read-only.
Definition: date_time.h:100
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes...
Definition: object.h:32
int_least32_t int32
Represents a 32-bit signed integer.
Definition: types.h:129
Write the process identity, which is represented by the return value of the Process.Id property.
int_least64_t int64
Represents a 64-bit signed integer.
Definition: types.h:140
Write the timestamp, which is represented by the return value of the GetTimestamp method...