Lines Matching defs:StatsTable

19 // The StatsTable uses a shared memory segment that is laid out as follows
56 // Each process which accesses the table will create a StatsTable object.
57 // The StatsTable maintains a hash table of the existing counters in the
87 // The StatsTable::Internal maintains convenience pointers into the
90 class StatsTable::Internal {
102 static Internal* New(const StatsTable::TableIdentifier& table,
119 (slot_id-1) * (StatsTable::kMaxThreadNameLength)];
129 (counter_id-1) * (StatsTable::kMaxCounterNameLength)];
149 const StatsTable::TableIdentifier& table,
157 // Initializes our in-memory pointers into a pre-created StatsTable.
172 StatsTable::Internal* StatsTable::Internal::New(
173 const StatsTable::TableIdentifier& table,
199 SharedMemory* StatsTable::Internal::CreateSharedMemory(
200 const StatsTable::TableIdentifier& table,
227 void StatsTable::Internal::InitializeTable(void* memory, int size,
241 void StatsTable::Internal::ComputeMappedPointers(void* memory) {
249 // Verify we're looking at a valid StatsTable.
254 max_threads() * StatsTable::kMaxThreadNameLength;
267 max_counters() * StatsTable::kMaxCounterNameLength;
277 // StatsTable. This is used so that we can properly cleanup when the
280 // Each thread that calls RegisterThread in the StatsTable will have
282 struct StatsTable::TLSData {
283 StatsTable* table;
288 StatsTable* global_table = NULL;
290 StatsTable::StatsTable(const TableIdentifier& table,
306 DPLOG(ERROR) << "StatsTable did not initialize";
309 StatsTable::~StatsTable() {
326 StatsTable* StatsTable::current() {
330 void StatsTable::set_current(StatsTable* value) {
334 int StatsTable::GetSlot() const {
341 int StatsTable::RegisterThread(const std::string& name) {
375 int StatsTable::CountThreadsRegistered() const {
390 int StatsTable::FindCounter(const std::string& name) {
412 int* StatsTable::GetLocation(int counter_id, int slot_id) const {
422 const char* StatsTable::GetRowName(int index) const {
429 int StatsTable::GetRowValue(int index) const {
433 int StatsTable::GetRowValue(int index, int pid) const {
446 int StatsTable::GetCounterValue(const std::string& name) {
450 int StatsTable::GetCounterValue(const std::string& name, int pid) {
460 int StatsTable::GetMaxCounters() const {
466 int StatsTable::GetMaxThreads() const {
472 int* StatsTable::FindLocation(const char* name) {
473 // Get the static StatsTable
474 StatsTable *table = StatsTable::current();
494 void StatsTable::UnregisterThread() {
498 void StatsTable::UnregisterThread(TLSData* data) {
512 void StatsTable::SlotReturnFunction(void* data) {
523 int StatsTable::FindEmptyThread() const {
546 int StatsTable::FindCounterOrEmptyRow(const std::string& name) const {
568 int StatsTable::AddCounter(const std::string& name) {
598 StatsTable::TLSData* StatsTable::GetTLSData() const {
610 SharedMemoryHandle StatsTable::GetSharedMemoryHandle() const {