Flow-IPC 3.0.0
Flow-IPC project: Full implementation reference.
Classes | Functions
ipc::shm::classic::stat Namespace Reference

Stats-related sub-namespace, for ADL segregation and general organization. More...

Classes

struct  Arena_info_dump
 Printable (with knobs in contained util::stat::Info_dump_format) bundling of stats/info pertaining to a particular SHM-classic Pool_arena, as stat-consumed at a particular point in time. More...
 
struct  Arena_stats
 Cumulative stats relevant to one SHM-classic arena – in this case single SHM-pool in shared memory, accessed via 1+ Pool_arena objects over time. More...
 
struct  Local_stats
 Cumulative stats relevant to a given SHM-classic arena object – a Pool_arena – and excluding those in Arena_stats which track the underlying in-SHM arena (pool) itself. More...
 

Functions

std::ostream & operator<< (std::ostream &os, const Arena_info_dump &val)
 Prints string representation of the given Arena_info_dump to the given ostream. More...
 
template<typename Visitor >
void declare_stats (const flow::util::stat::Stat_name &name_prefix, const Arena_stats *src_stats, Arena_stats *target_stats, Visitor &&visitor)
 Declares the stats for Arena_stats. More...
 
template<typename Visitor >
void declare_stats (const flow::util::stat::Stat_name &name_prefix, const Local_stats *src_stats, Local_stats *target_stats, Visitor &&visitor)
 Declares the stats for Local_stats. More...
 

Detailed Description

Stats-related sub-namespace, for ADL segregation and general organization.

Function Documentation

◆ declare_stats() [1/2]

template<typename Visitor >
void ipc::shm::classic::stat::declare_stats ( const flow::util::stat::Stat_name &  name_prefix,
const Arena_stats *  src_stats,
Arena_stats *  target_stats,
Visitor &&  visitor 
)

Declares the stats for Arena_stats.

Not invoked directly except by flow::util::stat internals, or when composing this stat-set into another.

See also
flow::util::stat namespace doc header for background on the declare/visit mechanism.
Template Parameters
VisitorSee above.
Parameters
name_prefixSee above.
src_statsSee above.
target_statsSee above.
visitorSee above.

Definition at line 164 of file pool_arena_stats.hpp.

References declare_stats(), ipc::shm::classic::stat::Arena_stats::m_live_obj, and ipc::shm::classic::stat::Arena_stats::m_obj.

Referenced by declare_stats().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ declare_stats() [2/2]

template<typename Visitor >
void ipc::shm::classic::stat::declare_stats ( const flow::util::stat::Stat_name &  name_prefix,
const Local_stats *  src_stats,
Local_stats *  target_stats,
Visitor &&  visitor 
)

Declares the stats for Local_stats.

Not invoked directly except by flow::util::stat internals, or when composing this stat-set into another.

See also
flow::util::stat namespace doc header for background on the declare/visit mechanism.
Template Parameters
VisitorSee above.
Parameters
name_prefixSee above.
src_statsSee above.
target_statsSee above.
visitorSee above.

Definition at line 195 of file pool_arena_stats.hpp.

References declare_stats(), ipc::shm::classic::stat::Local_stats::m_borrower_obj, ipc::shm::classic::stat::Local_stats::m_lender_obj, and ipc::shm::classic::stat::Local_stats::m_owner_obj.

Here is the call graph for this function:

◆ operator<<()

std::ostream & ipc::shm::classic::stat::operator<< ( std::ostream &  os,
const Arena_info_dump &  val 
)

Prints string representation of the given Arena_info_dump to the given ostream.

Note
val.m_fmt (util::stat::Info_dump_format) may contain knobs to affect the shape of the printed output.
Parameters
osStream to which to write.
valObject to serialize.
Returns
os.

Definition at line 30 of file pool_arena_stats.cpp.