| 97 | } |
| 98 | |
| 99 | void CallTraceStorage::clear(size_t mem_limit) { |
| 100 | while (_current_table->prev() != NULL) { |
| 101 | _current_table = _current_table->destroy(); |
| 102 | } |
| 103 | _current_table->clear(); |
| 104 | _used_memory = _current_table->usedMemory(); |
| 105 | _allocator.clear(); |
| 106 | _mem_limit = mem_limit ? mem_limit | MEM_LIMIT_EXTRA : SIZE_MAX; |
| 107 | _overflow = 0; |
| 108 | } |
| 109 | |
| 110 | u32 CallTraceStorage::capacity() { |
| 111 | // As capacity of each subsequent table doubles, |
nothing calls this directly
no test coverage detected