OpenFPM_pdata
1.1.0
Project that contain the implementation of distributed structures
All
Data Structures
Namespaces
Functions
Variables
Typedefs
Enumerations
Friends
Pages
Memleak_check.cpp
1
#include "config.h"
2
#include "Memleak_check.hpp"
3
#include "ptr_info.hpp"
4
5
// counter for allocation of new memory
6
long
int
new_data;
7
8
// counter to delete memory
9
size_t
delete_data;
10
11
// structure that store all the active pointer
12
std::map<byte_ptr, ptr_info> active_ptr;
13
14
// Running process id
15
long
int
process_v_cl;
16
17
// Process to print
18
long
int
process_to_print = 0;
19
20
// A way to stop the color
21
std::string col_stop(
"\e[0m"
);
22
23
// Print a message when allocation with id==msg_on_alloc is performed
24
long
int
msg_on_alloc = -1;
25
long
int
msg_on_dealloc = -1;
26
27
// throw when allocation with id==throw_on_alloc is performed
28
long
int
thr_on_alloc = -1;
openfpm_devices
src
Memleak_check.cpp
Generated by
1.8.6