![]() |
Rosetta Utilities
2015.09
|
#include <MemTracer.hh>
Public Member Functions | |
MemTracer (TracerPriority priority=t_info, bool muted_by_default=true) | |
![]() | |
Tracer (std::string const &channel="", TracerPriority priority=t_info, bool muted_by_default=false) | |
Create Tracer object with given channel and priority. More... | |
virtual | ~Tracer () |
void | init (Tracer const &tr) |
re-init using data from another tracer object. More... | |
void | flush_all_channels () |
flush tracer buffer and flush buffers of all sub-channels ie: Fatal, Error, Warning, Info, Debug, Trace More... | |
bool | visible () const |
Is this tracer currently visible?. More... | |
bool | visible (int priority) const |
is this tracer visible, if it used the given priority value? More... | |
int | priority () const |
get/set tracer priority level. More... | |
Tracer & | operator() (int priority) |
void | priority (int priority) |
std::string const & | channel () const |
![]() | |
basic_otstream () | |
virtual | ~basic_otstream () |
bool | is_flushed () const |
Return true if inner string buffer is empty. More... | |
![]() | |
ReferenceCount () | |
Default constructor. More... | |
virtual | ~ReferenceCount () |
Protected Member Functions | |
virtual void | t_flush (std::string const &) |
overload member function. More... | |
Private Types | |
typedef Tracer | Parent |
Static Private Attributes | |
static bool | single_line_ = false |
Additional Inherited Members | |
![]() | |
typedef std::ostream * | OstreamPointer |
![]() | |
typedef platform::Size | Size |
typedef platform::Size | size_type |
![]() | |
static OstreamPointer & | final_stream () |
set ios hook for final tracer stream (deafult is std::cout). More... | |
static void | set_new_final_stream (std::ostream *new_final_stream) |
static void | set_default_final_stream () |
static void | set_ios_hook (otstreamOP tr, std::string const &monitoring_channels_list, bool raw=true) |
set ios hook for all tracer io operation. More... | |
static std::string const & | get_all_channels_string () |
static TracerOptions & | tracer_options () |
get/set tracer options - global options for Tracer IO. More... | |
static bool | super_mute () |
global super mute flag that allow to mute all io no matter what. More... | |
static void | super_mute (bool f) |
static void | flush_all_tracers () |
static void | calculate_tracer_visibilities () |
This function should be invoked after the options system has been initialized, so that the visibility for all tracers that have so far been constructed and have been waiting for the options system to be initialized can now have their visibility calculated. After this function completes, all newly-constructed Tracers will calculate their visibility in their constructors. Visibility is no longer be calculated on a just-in-time basis and stored in mutable data members. More... | |
![]() | |
TracerProxy | Fatal |
channels with predefined priority levels. More... | |
TracerProxy | Error |
TracerProxy | Warning |
TracerProxy | Info |
TracerProxy | Debug |
TracerProxy | Trace |
![]() | |
static CSI_Sequence | Reset |
pre-created objects to hold various ASCII CSI codes, treat them as almost-const's Codes below is all Hogwarts-approved magic numbers, so do not modify them. For reference see: http://en.wikipedia.org/wiki/ANSI_escape_code#CSI_codes More... | |
static CSI_Sequence | Bold |
static CSI_Sequence | Underline |
static CSI_Sequence | Black |
static CSI_Sequence | Red |
static CSI_Sequence | Green |
static CSI_Sequence | Yellow |
static CSI_Sequence | Blue |
static CSI_Sequence | Magenta |
static CSI_Sequence | Cyan |
static CSI_Sequence | White |
static CSI_Sequence | bgBlack |
static CSI_Sequence | bgRed |
static CSI_Sequence | bgGreen |
static CSI_Sequence | bgYellow |
static CSI_Sequence | bgBlue |
static CSI_Sequence | bgMagenta |
static CSI_Sequence | bgCyan |
static CSI_Sequence | bgWhite |
|
private |
|
inline |
|
protectedvirtual |
overload member function.
Reimplemented from basic::Tracer.
References basic::get_usage_from_procfilesystem(), basic::Tracer::t_flush(), and basic::Tracer::visible().
|
staticprivate |