MCPcopy Create free account
hub / github.com/devosoft/avida / GetStats

Method GetStats

libs/tcmalloc-1.4/src/tcmalloc.cc:417–427  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

415class TCMallocImplementation : public MallocExtension {
416 public:
417 virtual void GetStats(char* buffer, int buffer_length) {
418 ASSERT(buffer_length > 0);
419 TCMalloc_Printer printer(buffer, buffer_length);
420
421 // Print level one stats unless lots of space is available
422 if (buffer_length < 10000) {
423 DumpStats(&printer, 1);
424 } else {
425 DumpStats(&printer, 2);
426 }
427 }
428
429 virtual bool GetNumericProperty(const char* name, size_t* value) {
430 ASSERT(name != NULL);

Callers

nothing calls this directly

Calls 1

DumpStatsFunction · 0.85

Tested by

no test coverage detected