Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(293)

Side by Side Diff: third_party/tcmalloc/chromium/src/gperftools/heap-profiler.h

Issue 986503002: components/metrics: Add runtime memory leak detector (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix error in leak analyzer logic Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_ */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698