Lines Matching defs:StatsTable

25 // The StatsTable uses a shared memory segment that is laid out as follows
62 // Each process which accesses the table will create a StatsTable object.
63 // The StatsTable maintains a hash table of the existing counters in the
93 // The StatsTable::Internal maintains convenience pointers into the
96 class StatsTable::Internal {
125 (slot_id-1) * (StatsTable::kMaxThreadNameLength)];
135 (counter_id-1) * (StatsTable::kMaxCounterNameLength)];
162 // Initializes our in-memory pointers into a pre-created StatsTable.
177 StatsTable::Internal* StatsTable::Internal::New(const std::string& name,
203 SharedMemory* StatsTable::Internal::CreateSharedMemory(const std::string& name,
226 void StatsTable::Internal::InitializeTable(void* memory, int size,
240 void StatsTable::Internal::ComputeMappedPointers(void* memory) {
248 // Verify we're looking at a valid StatsTable.
253 max_threads() * StatsTable::kMaxThreadNameLength;
266 max_counters() * StatsTable::kMaxCounterNameLength;
276 // StatsTable. This is used so that we can properly cleanup when the
279 // Each thread that calls RegisterThread in the StatsTable will have
281 struct StatsTable::TLSData {
282 StatsTable* table;
287 StatsTable* global_table = NULL;
289 StatsTable::StatsTable(const std::string& name, int max_threads,
304 DPLOG(ERROR) << "StatsTable did not initialize";
307 StatsTable::~StatsTable() {
324 StatsTable* StatsTable::current() {
328 void StatsTable::set_current(StatsTable* value) {
332 int StatsTable::GetSlot() const {
339 int StatsTable::RegisterThread(const std::string& name) {
372 int StatsTable::CountThreadsRegistered() const {
387 int StatsTable::FindCounter(const std::string& name) {
409 int* StatsTable::GetLocation(int counter_id, int slot_id) const {
419 const char* StatsTable::GetRowName(int index) const {
426 int StatsTable::GetRowValue(int index) const {
430 int StatsTable::GetRowValue(int index, int pid) const {
443 int StatsTable::GetCounterValue(const std::string& name) {
447 int StatsTable::GetCounterValue(const std::string& name, int pid) {
457 int StatsTable::GetMaxCounters() const {
463 int StatsTable::GetMaxThreads() const {
469 int* StatsTable::FindLocation(const char* name) {
470 // Get the static StatsTable
471 StatsTable *table = StatsTable::current();
489 void StatsTable::UnregisterThread() {
493 void StatsTable::UnregisterThread(TLSData* data) {
507 void StatsTable::SlotReturnFunction(void* data) {
518 int StatsTable::FindEmptyThread() const {
541 int StatsTable::FindCounterOrEmptyRow(const std::string& name) const {
563 int StatsTable::AddCounter(const std::string& name) {
593 StatsTable::TLSData* StatsTable::GetTLSData() const {
605 SharedMemoryHandle StatsTable::GetSharedMemoryHandle() const {