class LocalStats
Defined at line 31 of file ../../third_party/scudo/src/stats.h
Per-thread stats, live in per-thread cache. We use atomics so that the
numbers themselves are consistent. But we don't use atomic_{add|sub} or a
lock, because those are expensive operations , and we only care for the stats
to be "somewhat" correct: eg. if we call GlobalStats::get while a thread is
LocalStats::add'ing, this is OK, we will still get a meaningful number.
Public Members
LocalStats * Next
LocalStats * Prev
Public Methods
void init ()
Defined at line 33 of file ../../third_party/scudo/src/stats.h
void add (StatType I, uptr V)
Defined at line 38 of file ../../third_party/scudo/src/stats.h
void sub (StatType I, uptr V)
Defined at line 43 of file ../../third_party/scudo/src/stats.h
void set (StatType I, uptr V)
Defined at line 48 of file ../../third_party/scudo/src/stats.h
uptr get (StatType I)
Defined at line 50 of file ../../third_party/scudo/src/stats.h