MCPcopy Create free account
hub / github.com/GNOME/gjs / debug

Function debug

gi/toggle.cpp:21–26  ·  view source on GitHub ↗

No-op unless GJS_VERBOSE_ENABLE_LIFECYCLE is defined to 1.

Source from the content-addressed store, hash-verified

19
20// No-op unless GJS_VERBOSE_ENABLE_LIFECYCLE is defined to 1.
21inline void debug(const char* did GJS_USED_VERBOSE_LIFECYCLE,
22 const ObjectInstance* object GJS_USED_VERBOSE_LIFECYCLE) {
23 gjs_debug_lifecycle(GJS_DEBUG_GOBJECT, "ToggleQueue %s %p (%s @ %p)", did,
24 object, object ? g_type_name(object->gtype()) : "",
25 object ? object->ptr() : nullptr);
26}
27
28void ToggleQueue::lock() {
29 auto holding_thread = std::thread::id();

Callers 15

cancelMethod · 0.70
handle_toggleMethod · 0.70
shutdownMethod · 0.70
enqueueMethod · 0.70
teardown_rootingMethod · 0.50
GjsMaybeOwnedMethod · 0.50
~GjsMaybeOwnedMethod · 0.50
rootMethod · 0.50
prevent_collectionMethod · 0.50
resetMethod · 0.50
switch_to_rootedMethod · 0.50
switch_to_unrootedMethod · 0.50

Calls 2

gtypeMethod · 0.45
ptrMethod · 0.45

Tested by

no test coverage detected