Get current thread cache usage
| 71 | |
| 72 | // Get current thread cache usage |
| 73 | static 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. |
no test coverage detected