MCPcopy Create free account
hub / github.com/GrapheneCt/NetStream / LeakTestTask

Function LeakTestTask

NetStream/source/debug.cpp:74–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74void LeakTestTask(void *pUserData)
75{
76 int32_t sz = 0;
77 int32_t delta = 0;
78 string str;
79
80#ifdef DEBUG_MEM_HEAP
81 memory::HeapAllocator *glAlloc = static_cast<memory::HeapAllocator *>(GetGlobalHeapAllocator());
82 sz = glAlloc->GetFreeSize();
83
84 str.clear();
85 str = common::FormatBytesize(sz, 0);
86 SCE_DBG_LOG_INFO("[NS_DEBUG] Free heap memory: %s", str.c_str());
87
88 delta = s_oldMemSize - sz;
89 delta = -delta;
90 if (delta) {
91 SCE_DBG_LOG_INFO("[NS_DEBUG] Memory delta: %d bytes", delta);
92 }
93 s_oldMemSize = sz;
94#endif
95
96#ifdef DEBUG_SURFACE_HEAP
97
98 sz = gutil::GetDefaultSurfacePool()->GetFreeSize();
99
100 str.clear();
101 str = common::FormatBytesize(sz, 0);
102 SCE_DBG_LOG_INFO("[NS_DEBUG] Free graphics pool: %s", str.c_str());
103
104 delta = s_oldGraphMemSize - sz;
105 delta = -delta;
106 if (delta) {
107 SCE_DBG_LOG_INFO("[NS_DEBUG] Graphics pool delta: %d bytes", delta);
108 }
109 s_oldGraphMemSize = sz;
110#endif
111}
112
113void JobQueueTestTask(void *pUserData)
114{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected