Home | History | Annotate | Download | only in metrics

Lines Matching refs:table

28 // | Thread names table                        |
30 // | Thread TID table |
32 // | Thread PID table |
34 // | Counter names table |
51 // the rows and columns of the table to particular threads, locking is
55 // shared-memory table only, and is used when we create new counters (e.g.
57 // data from the table does not require any locking at the shared memory
60 // Each process which accesses the table will create a StatsTable object.
61 // The StatsTable maintains a hash table of the existing counters in the
62 // table for faster lookup. Since the hash table is process specific,
64 // de-allocating from the hash table. (Counters are dynamically added,
74 // file, and so that we can identify our table.
77 // The name for un-named counters and threads in the table.
148 // Initializes the table on first access. Sets header values
182 // If the version does not match, then assume the table needs
187 // We have a valid table, so compute our pointers.
245 // thread exits and return the table slot.
250 StatsTable* table;
254 // We keep a singleton table which can be easily accessed.
276 // Before we tear down our copy of the table, be sure to
287 // If we are the global table, unregister ourselves.
317 // We have space, so consume a column in the table.
329 data->table = this;
341 // We intentionally do not lock the table during the operation.
435 StatsTable *table = StatsTable::current();
436 if (!table)
441 int slot = table->GetSlot();
442 if (!slot && !(slot = table->RegisterThread("")))
447 int counter = table->FindCounter(str_name);
449 // Now we can find the location in the table.
450 return table->GetLocation(counter, slot);
477 DCHECK(tls_data->table);
478 tls_data->table->UnregisterThread(tls_data);
501 return 0; // The table is full.
569 DCHECK_EQ(data->table, this);