malloc_counter.h
Go to the documentation of this file.
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 
5 #ifndef UTIL_MALLOC_COUNTER_H_
6 #define UTIL_MALLOC_COUNTER_H_
7 
8 namespace testing {
9 class MallocCounter {
10  public:
11  MallocCounter(int x) {}
12  static const int THIS_THREAD_ONLY = 0;
13  long long HeapGrowth() { return 0; }
14  long long PeakHeapGrowth() { return 0; }
15  void Reset() {}
16 };
17 } // namespace testing
18 
19 #endif // UTIL_MALLOC_COUNTER_H_
testing
Definition: aws_request_signer_test.cc:25
testing::MallocCounter::MallocCounter
MallocCounter(int x)
Definition: malloc_counter.h:11
testing::MallocCounter::PeakHeapGrowth
long long PeakHeapGrowth()
Definition: malloc_counter.h:14
testing::MallocCounter::Reset
void Reset()
Definition: malloc_counter.h:15
testing::MallocCounter
Definition: bloaty/third_party/re2/util/test.h:48
testing::MallocCounter::HeapGrowth
long long HeapGrowth()
Definition: malloc_counter.h:13
testing::MallocCounter::THIS_THREAD_ONLY
static const int THIS_THREAD_ONLY
Definition: bloaty/third_party/re2/util/test.h:51


grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:00:30