MCPcopy Create free account
hub / github.com/beefytech/Beef / GetTotalThreadCacheSize

Function GetTotalThreadCacheSize

BeefRT/gperftools/src/tests/markidle_unittest.cc:73–79  ·  view source on GitHub ↗

Get current thread cache usage

Source from the content-addressed store, hash-verified

71
72// Get current thread cache usage
73static size_t GetTotalThreadCacheSize() {
74 size_t result;
75 CHECK(MallocExtension::instance()->GetNumericProperty(
76 "tcmalloc.current_total_thread_cache_bytes",
77 &result));
78 return result;
79}
80
81// Check that MarkThreadIdle() actually reduces the amount
82// of per-thread memory.

Callers 1

TestIdleUsageFunction · 0.70

Calls 1

GetNumericPropertyMethod · 0.45

Tested by

no test coverage detected