Classes | Public Types | Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
grpc_core::channelz::ChannelTrace Class Reference

#include <channel_trace.h>

Classes

class  TraceEvent
 

Public Types

enum  Severity { Unset = 0, Info, Warning, Error }
 

Public Member Functions

void AddTraceEvent (Severity severity, const grpc_slice &data)
 
void AddTraceEventWithReference (Severity severity, const grpc_slice &data, RefCountedPtr< BaseNode > referenced_entity)
 
 ChannelTrace (size_t max_event_memory)
 
Json RenderJson () const
 
 ~ChannelTrace ()
 

Private Member Functions

void AddTraceEventHelper (TraceEvent *new_trace_event)
 

Private Attributes

size_t event_list_memory_usage_
 
TraceEventhead_trace_
 
size_t max_event_memory_
 
uint64_t num_events_logged_
 
TraceEventtail_trace_
 
gpr_timespec time_created_
 
gpr_mu tracer_mu_
 

Friends

size_t testing::GetSizeofTraceEvent (void)
 

Detailed Description

Definition at line 46 of file channel_trace.h.

Member Enumeration Documentation

◆ Severity

Enumerator
Unset 
Info 
Warning 
Error 

Definition at line 51 of file channel_trace.h.

Constructor & Destructor Documentation

◆ ChannelTrace()

grpc_core::channelz::ChannelTrace::ChannelTrace ( size_t  max_event_memory)
explicit

Definition at line 58 of file channel_trace.cc.

◆ ~ChannelTrace()

grpc_core::channelz::ChannelTrace::~ChannelTrace ( )

Definition at line 71 of file channel_trace.cc.

Member Function Documentation

◆ AddTraceEvent()

void grpc_core::channelz::ChannelTrace::AddTraceEvent ( Severity  severity,
const grpc_slice data 
)

Definition at line 105 of file channel_trace.cc.

◆ AddTraceEventHelper()

void grpc_core::channelz::ChannelTrace::AddTraceEventHelper ( TraceEvent new_trace_event)
private

Definition at line 84 of file channel_trace.cc.

◆ AddTraceEventWithReference()

void grpc_core::channelz::ChannelTrace::AddTraceEventWithReference ( Severity  severity,
const grpc_slice data,
RefCountedPtr< BaseNode referenced_entity 
)

Definition at line 113 of file channel_trace.cc.

◆ RenderJson()

Json grpc_core::channelz::ChannelTrace::RenderJson ( ) const

Definition at line 162 of file channel_trace.cc.

Friends And Related Function Documentation

◆ testing::GetSizeofTraceEvent

size_t testing::GetSizeofTraceEvent ( void  )
friend

Member Data Documentation

◆ event_list_memory_usage_

size_t grpc_core::channelz::ChannelTrace::event_list_memory_usage_
private

Definition at line 128 of file channel_trace.h.

◆ head_trace_

TraceEvent* grpc_core::channelz::ChannelTrace::head_trace_
private

Definition at line 130 of file channel_trace.h.

◆ max_event_memory_

size_t grpc_core::channelz::ChannelTrace::max_event_memory_
private

Definition at line 129 of file channel_trace.h.

◆ num_events_logged_

uint64_t grpc_core::channelz::ChannelTrace::num_events_logged_
private

Definition at line 127 of file channel_trace.h.

◆ tail_trace_

TraceEvent* grpc_core::channelz::ChannelTrace::tail_trace_
private

Definition at line 131 of file channel_trace.h.

◆ time_created_

gpr_timespec grpc_core::channelz::ChannelTrace::time_created_
private

Definition at line 132 of file channel_trace.h.

◆ tracer_mu_

gpr_mu grpc_core::channelz::ChannelTrace::tracer_mu_
private

Definition at line 126 of file channel_trace.h.


The documentation for this class was generated from the following files:


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:38