Lines Matching refs:StatsTable
5 // A StatsTable is a table of statistics. It can be used across multiple
14 // To achieve this, StatsTable creates a shared memory segment to store
34 class BASE_API StatsTable {
36 // Create a new StatsTable.
37 // If a StatsTable already exists with the specified name, this StatsTable
39 // a new StatsTable is created and all counters are zeroed.
41 // name is the name of the StatsTable to use.
44 // If the StatsTable already exists, this number is ignored.
47 // If the StatsTable already exists, this number is ignored.
48 StatsTable(const std::string& name, int max_threads, int max_counters);
50 // Destroys the StatsTable. When the last StatsTable is destroyed
51 // (across all processes), the StatsTable is removed from disk.
52 ~StatsTable();
56 static StatsTable* current() { return global_table_; }
59 static void set_current(StatsTable* value) { global_table_ = value; }
82 // Find a counter in the StatsTable.
149 // which used the StatsTable.
162 // Internal function to add a counter to the StatsTable. Assumes that
189 static StatsTable* global_table_;
191 DISALLOW_COPY_AND_ASSIGN(StatsTable);