Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
ogs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Dmitri Naumov
ogs
Commits
1782b4d3
Commit
1782b4d3
authored
4 years ago
by
Tom Fischer
Browse files
Options
Downloads
Patches
Plain Diff
[BL] Rm unused methods from MemWatch.
parent
766a0fdc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
BaseLib/MemWatch.cpp
+0
-24
0 additions, 24 deletions
BaseLib/MemWatch.cpp
BaseLib/MemWatch.h
+0
-6
0 additions, 6 deletions
BaseLib/MemWatch.h
with
0 additions
and
30 deletions
BaseLib/MemWatch.cpp
+
0
−
24
View file @
1782b4d3
...
...
@@ -49,15 +49,6 @@ unsigned MemWatch::updateMemUsage ()
in
>>
pages
;
_vmem_size
=
static_cast
<
unsigned
long
>
(
pages
)
*
static_cast
<
unsigned
long
>
(
getpagesize
());
in
>>
pages
;
_rmem_size
=
static_cast
<
unsigned
long
>
(
pages
)
*
static_cast
<
unsigned
long
>
(
getpagesize
());
in
>>
pages
;
_smem_size
=
static_cast
<
unsigned
long
>
(
pages
)
*
static_cast
<
unsigned
long
>
(
getpagesize
());
in
>>
pages
;
_cmem_size
=
static_cast
<
unsigned
long
>
(
pages
)
*
static_cast
<
unsigned
long
>
(
getpagesize
());
in
.
close
();
#endif
...
...
@@ -70,20 +61,5 @@ unsigned long MemWatch::getVirtMemUsage ()
return
_vmem_size
;
}
unsigned
long
MemWatch
::
getResMemUsage
()
{
updateMemUsage
();
return
_rmem_size
;
}
unsigned
long
MemWatch
::
getShrMemUsage
()
{
updateMemUsage
();
return
_smem_size
;
}
unsigned
long
MemWatch
::
getCodeMemUsage
()
{
updateMemUsage
();
return
_cmem_size
;
}
}
// end namespace BaseLib
This diff is collapsed.
Click to expand it.
BaseLib/MemWatch.h
+
0
−
6
View file @
1782b4d3
...
...
@@ -20,16 +20,10 @@ class MemWatch {
public:
MemWatch
();
unsigned
long
getVirtMemUsage
();
unsigned
long
getResMemUsage
();
unsigned
long
getShrMemUsage
();
unsigned
long
getCodeMemUsage
();
private:
unsigned
updateMemUsage
();
unsigned
long
_vmem_size
=
0
;
unsigned
long
_rmem_size
=
0
;
unsigned
long
_smem_size
=
0
;
unsigned
long
_cmem_size
=
0
;
};
}
// namespace BaseLib
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