Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
openfpm_devices
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sbalzarini Lab
Software
Parallel Computing
OpenFPM
openfpm_devices
Commits
a1c9250c
Commit
a1c9250c
authored
9 years ago
by
Pietro Incardona
Browse files
Options
Downloads
Patches
Plain Diff
Adjustment for SE_CLASS2
parent
a616ad86
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Memleak_check.hpp
+18
-2
18 additions, 2 deletions
src/Memleak_check.hpp
with
18 additions
and
2 deletions
src/Memleak_check.hpp
+
18
−
2
View file @
a1c9250c
...
...
@@ -129,6 +129,12 @@ inline static void get_color(size_t project_id, size_t size, std::string & col)
}
}
/*! \brief Given the structure id it convert to a human readable structure string
*
* \param project_id id of the project
* \param prj string that identify the project
*
*/
inline
static
void
get_structure
(
size_t
struct_id
,
std
::
string
&
str
)
{
switch
(
struct_id
)
...
...
@@ -162,6 +168,13 @@ inline static void get_structure(size_t struct_id, std::string & str)
}
}
/*! \brief Given the project id it convert to a human readable project string
*
* \param project_id id of the project
* \param prj string that identify the project
*
*/
inline
static
void
get_project
(
size_t
project_id
,
std
::
string
&
prj
)
{
switch
(
project_id
)
...
...
@@ -184,9 +197,9 @@ inline static void get_project(size_t project_id, std::string & prj)
}
}
/*! \brief Print all active
pointer
/*! \brief Print all active
structures
*
* Print all active
pointer
* Print all active
structures
*
*/
static
void
print_alloc
()
...
...
@@ -251,6 +264,9 @@ static bool check_new(const void * data, size_t sz, size_t struct_id, size_t pro
if
(
msg_on_alloc
==
new_data
)
std
::
cout
<<
"Detected allocation: "
<<
__FILE__
<<
":"
<<
__LINE__
<<
" id="
<<
msg_on_alloc
<<
"
\n
"
;
if
(
thr_on_alloc
==
new_data
)
throw
MEM_ERROR
;
return
true
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment