Bug 1013078 (part 2) - Remove some dead code in tools/jprof/stub/libmalloc.h. r=dbaron.
authorNicholas Nethercote <nnethercote@mozilla.com>
Tue, 20 May 2014 18:05:17 -0700
changeset 184037 47fbda634a67deb2df667a40121c92c8c205bee0
parent 184036 372ed56353b5f1a3f81cab66ea745ef21fc44116
child 184038 3ea744b43a24a9bf7e666026b9a15ee9d5927c2e
push id26810
push usercbook@mozilla.com
push dateWed, 21 May 2014 11:46:36 +0000
treeherdermozilla-central@50fb8c4db2fd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdbaron
bugs1013078
milestone32.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1013078 (part 2) - Remove some dead code in tools/jprof/stub/libmalloc.h. r=dbaron.
tools/jprof/stub/libmalloc.h
--- a/tools/jprof/stub/libmalloc.h
+++ b/tools/jprof/stub/libmalloc.h
@@ -26,49 +26,20 @@ typedef unsigned long u_long;
 struct malloc_log_entry {
   u_long delTime;
   u_long numpcs;
   unsigned int flags;
   int thread;
   char* pcs[MAX_STACK_CRAWL];
 };
 
-// type's
-#define malloc_log_stack   7
-
 // Format of a malloc map entry; after this struct is nameLen+1 bytes of
 // name data.
 struct malloc_map_entry {
   u_long nameLen;
   u_long address;		// base address
 };
 
-// A method that can be called if you want to programmatically control
-// the malloc logging. Note that you must link with the library to do
-// this (or use dlsym after dynamically loading the library...)
-extern u_long SetMallocFlags(u_long flags);
-
-// The environment variable LIBMALLOC_LOG should be set to an integer
-// value whose meaning is as follows:
-
-// Enable logging
-#define LIBMALLOC_LOG    0x1
-
-// Don't free memory when set
-#define LIBMALLOC_NOFREE 0x2
-
-// Check heap for corruption after every malloc/free/realloc
-#define LIBMALLOC_CHECK  0x4
-
-// Log reference count calls (addref/release)
-#define LIBMALLOC_LOG_RC 0x8
-
-// Log a stack trace
-#define LIBMALLOC_LOG_TRACE 0x10
-
-void __log_addref(void* p, int oldrc, int newrc);
-void __log_release(void* p, int oldrc, int newrc);
-
 #ifdef __cplusplus
 } /* end of extern "C" */
 #endif
 
 #endif /* libmalloc_h___ */