class VLogSite

Defined at line 60 of file ../../third_party/abseil-cpp/absl/log/internal/vlog_config.h

Represents a unique callsite for a `VLOG()` or `VLOG_IS_ON()` call.

Libraries that provide `VLOG`-like functionality should use this to

efficiently handle --vmodule.

VLogSite objects must not be destroyed until the program exits. Doing so will

probably yield nasty segfaults in VLogSiteManager::UpdateLogSites(). The

recommendation is to make all such objects function-local statics.

Public Methods

void VLogSite (const char * f)

`f` must not be destroyed until the program exits.

Defined at line 63 of file ../../third_party/abseil-cpp/absl/log/internal/vlog_config.h

void VLogSite (const VLogSite & )

Defined at line 65 of file ../../third_party/abseil-cpp/absl/log/internal/vlog_config.h

VLogSite & operator= (const VLogSite & )

Defined at line 66 of file ../../third_party/abseil-cpp/absl/log/internal/vlog_config.h

bool IsEnabled (int level)

Inlining the function yields a ~3x performance improvement at the cost of a

1.5x code size increase at the call site.

Takes locks but does not allocate memory.

Defined at line 71 of file ../../third_party/abseil-cpp/absl/log/internal/vlog_config.h

Friends

class SyntheticBinary
void VLogSite ()
int VLogSite (VLogSite * v)