Geant4_10
Macros | Functions | Variables
hjmalloc.cc File Reference
#include <iostream>
#include <stdio.h>
#include <time.h>
#include "tls.hh"
#include "tpmalloc/mymalloc.h"
Include dependency graph for hjmalloc.cc:

Go to the source code of this file.

Macros

#define HJMALLOCDEBUG   0
 
#define HJMALLOCPROFILE   0
 
#define TLMSSIZE   256
 

Functions

void turnontpmalloc ()
 
void turnofftpmalloc ()
 
int tpmallocflag ()
 
voidmalloc (size_t __size)
 
voidcalloc (size_t __nmemb, size_t __size)
 
voidrealloc (void *__ptr, size_t __size)
 
void free (void *__ptr)
 
void cfree (void *__ptr)
 
voidvalloc (size_t __size)
 

Variables

G4ThreadLocal int mallocswitch = 0
 
G4ThreadLocal mspace tlms = 0
 
G4ThreadLocal long int alloccount = 0
 
G4ThreadLocal long int freecount = 0
 
G4ThreadLocal double alloctime = 0.0
 
G4ThreadLocal double freetime = 0.0
 

Macro Definition Documentation

#define HJMALLOCDEBUG   0

Definition at line 17 of file hjmalloc.cc.

#define HJMALLOCPROFILE   0

Definition at line 18 of file hjmalloc.cc.

#define TLMSSIZE   256

Definition at line 21 of file hjmalloc.cc.

Function Documentation

void* calloc ( size_t  __nmemb,
size_t  __size 
)

Definition at line 67 of file hjmalloc.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

void cfree ( void __ptr)

Definition at line 174 of file hjmalloc.cc.

Here is the call graph for this function:

void free ( void __ptr)

Definition at line 140 of file hjmalloc.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

void* malloc ( size_t  __size)

Definition at line 30 of file hjmalloc.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

void* realloc ( void __ptr,
size_t  __size 
)

Definition at line 103 of file hjmalloc.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

int tpmallocflag ( )

Definition at line 28 of file hjmalloc.cc.

void turnofftpmalloc ( )

Definition at line 27 of file hjmalloc.cc.

void turnontpmalloc ( )

Definition at line 26 of file hjmalloc.cc.

void* valloc ( size_t  __size)

Definition at line 208 of file hjmalloc.cc.

Here is the call graph for this function:

Variable Documentation

G4ThreadLocal long int alloccount = 0

Definition at line 11 of file hjmalloc.cc.

G4ThreadLocal double alloctime = 0.0

Definition at line 14 of file hjmalloc.cc.

G4ThreadLocal long int freecount = 0

Definition at line 12 of file hjmalloc.cc.

G4ThreadLocal double freetime = 0.0

Definition at line 15 of file hjmalloc.cc.

G4ThreadLocal int mallocswitch = 0

Definition at line 8 of file hjmalloc.cc.

Definition at line 9 of file hjmalloc.cc.