OLD | NEW |
1 /* Copyright (c) 2005, Google Inc. | 1 /* Copyright (c) 2005, Google Inc. |
2 * All rights reserved. | 2 * All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 * to the object being visited. | 124 * to the object being visited. |
125 */ | 125 */ |
126 typedef void (*AddressVisitor)(void* data, const void* ptr); | 126 typedef void (*AddressVisitor)(void* data, const void* ptr); |
127 | 127 |
128 /* Iterate over all live allocated objects. For each allocation the | 128 /* Iterate over all live allocated objects. For each allocation the |
129 * callback will be invoked with the data argument and allocation pointer. | 129 * callback will be invoked with the data argument and allocation pointer. |
130 */ | 130 */ |
131 PERFTOOLS_DLL_DECL void IterateAllocatedObjects(AddressVisitor callback, | 131 PERFTOOLS_DLL_DECL void IterateAllocatedObjects(AddressVisitor callback, |
132 void* data); | 132 void* data); |
133 | 133 |
| 134 /* Export this dummy function so that the LeakDetector is compiled in. */ |
| 135 #if defined (ENABLE_LEAK_DETECTOR) |
| 136 void LeakDetectorDummy(); |
| 137 #endif |
| 138 |
134 #ifdef __cplusplus | 139 #ifdef __cplusplus |
135 } // extern "C" | 140 } // extern "C" |
136 #endif | 141 #endif |
137 | 142 |
138 #endif /* BASE_HEAP_PROFILER_H_ */ | 143 #endif /* BASE_HEAP_PROFILER_H_ */ |
OLD | NEW |