28class BaseAnchorEvent :
public RefCountEvent {
30 BaseAnchorEvent(Anchored
const *
object,
int bias,
35 _addProperty(
"pointer",
Util::format(
"%p",
object).pointer());
37 _addProperty(
"new-refcount", object->_anchored_refcount() + bias);
41class AnchorEvent :
public BaseAnchorEvent {
43 AnchorEvent(Anchored
const *
object)
44 : BaseAnchorEvent(object, 1,
"gc-anchor")
48class ReleaseEvent :
public BaseAnchorEvent {
50 ReleaseEvent(Anchored
const *
object)
51 : BaseAnchorEvent(object, -1,
"gc-release")
Anchor * _new_anchor() const
void _free_anchor(Anchor *anchor) const
std::shared_ptr< std::string > demangle(char const *name)
static R & anchor(R &r)
Increments the reference count of a anchored object.
ptr_shared format(char const *format,...) G_GNUC_PRINTF(1
Helper class to stream background task notifications as a series of messages.
static void * base(void *ptr)