xtd - Reference Guide 0.2.0
Go to the documentation of this file.
1 #pragma once
5 #include <string>
6 #include <thread>
7 #include <vector>
8 #include "../date_time.h"
9 #include "../object.h"
10 #include "../ustring.h"
13 namespace xtd {
15  namespace diagnostics {
27  class core_export_ trace_event_cache : public xtd::object {
28  public:
33  trace_event_cache() = default;
38  trace_event_cache& operator=(const trace_event_cache& tec) = default;
47  xtd::ustring call_stack() const;
52  const xtd::date_time& date_time() const;
57  std::vector<xtd::ustring> logical_operation_stack() const;
62  int32_t process_id() const;
67  xtd::ustring thread_id() const;
72  int64_t timestamp() const;
75  private:
76  mutable xtd::date_time date_time_ = xtd::date_time::min_value;
77  };
78  }
79 }
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:27
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:50
Represents an instant in time, typically expressed as a date and time of day.
Definition: date_time.h:71
Write the process identity, which is represented by the return value of the Process.Id property.
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
Write the thread identity, which is represented by the return value of the Thread.ManagedThreadId property for the current thread.
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes...
Definition: object.h:30
Write the logical operation stack, which is represented by the return value of the CorrelationManager...
Write the timestamp, which is represented by the return value of the GetTimestamp method...