Phosphor
trace_event.h File Reference
#include <array>
#include <chrono>
#include <cstdint>
#include <iostream>
#include <string>
#include <thread>
#include <type_traits>
#include "phosphor/platform/core.h"
#include "trace_argument.h"
#include "tracepoint_info.h"

Go to the source code of this file.

Classes

class  phosphor::TraceEvent
 
class  phosphor::TraceEvent::ToJsonResult
 

Functions

PHOSPHOR_API std::ostream & phosphor::operator<< (std::ostream &os, const TraceEvent &trace_event)
 

Variables

constexpr auto phosphor::arg_count = 2
 

Detailed Description

This file is internal to the inner workings of Phosphor and is not intended for public consumption.

Function Documentation

std::ostream & phosphor::operator<< ( std::ostream &  os,
const TraceEvent trace_event 
)

ostream operator overload for TraceEvent

Adds a representation of a TraceEvent to an ostream.

Used for debugging purposes to stream a TraceEvent to an output stream like std::cout.

Parameters
osOutput stream to stream to.
trace_eventTraceEvent to be streamed
Returns
Output stream passed in