33 static std::atomic<uint32_t>
counter(0);
77 rc.first->second =
value;
84 std::ostringstream out;
85 int startSinceEpoch = std::chrono::duration_cast<std::chrono::milliseconds>(
87 int endSinceEpoch = std::chrono::duration_cast<std::chrono::milliseconds>(
91 out <<
"id='" <<
id_ <<
"', ";
92 out <<
"parentID='" <<
parentID_ <<
"', ";
93 out <<
"start='" << startSinceEpoch <<
"', ";
94 out <<
"end='" << endSinceEpoch <<
"', ";
97 while (itr.isValid()) {
107 const std::vector<std::string>& operand)
const {
110 for (
auto item : operand) {
117 out <<
event.toString();
const std::string & getTraceFieldTypeString(TraceFieldType type)
std::ostream & operator<<(std::ostream &os, const HeaderTable &table)
bool readBoolMeta(TraceFieldType key, bool &dest) const
friend std::ostream & operator<<(std::ostream &out, const TraceEvent &event)
FB_EXPORT TraceEvent(TraceEventType type, uint32_t parentID=0)
std::string toString() const
Iterator getMetaDataItr() const
bool readStrMeta(TraceFieldType key, std::string &dest) const
bool readMeta(TraceFieldType key, T &dest) const
void end(const TimeUtil &tm)
virtual std::chrono::time_point< ClockType > now() const
void push_back(dynamic const &)
static const char *const value
SteadyClock::time_point TimePoint
std::atomic< int > counter
void start(const TimeUtil &tm)
static void array(EmptyArrayTag)
std::string toJson(dynamic const &dyn)
FB_EXPORT bool addMetaInternal(TraceFieldType key, MetaData &&val)
static constexpr uint64_t data[1]
const std::string & getTraceEventTypeString(TraceEventType type)