malloc_counter.h 505 B

12345678910111213141516171819
  1. // Copyright 2009 The RE2 Authors. All Rights Reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. #ifndef UTIL_MALLOC_COUNTER_H_
  5. #define UTIL_MALLOC_COUNTER_H_
  6. namespace testing {
  7. class MallocCounter {
  8. public:
  9. MallocCounter(int x) {}
  10. static const int THIS_THREAD_ONLY = 0;
  11. long long HeapGrowth() { return 0; }
  12. long long PeakHeapGrowth() { return 0; }
  13. void Reset() {}
  14. };
  15. } // namespace testing
  16. #endif // UTIL_MALLOC_COUNTER_H_