mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
ENH: memInfo class.
This commit is contained in:
3
applications/test/memInfo/Make/files
Normal file
3
applications/test/memInfo/Make/files
Normal file
@ -0,0 +1,3 @@
|
||||
memInfo.C
|
||||
|
||||
EXE = $(FOAM_USER_APPBIN)/memInfo
|
||||
0
applications/test/memInfo/Make/options
Normal file
0
applications/test/memInfo/Make/options
Normal file
19
applications/test/memInfo/memInfo.C
Normal file
19
applications/test/memInfo/memInfo.C
Normal file
@ -0,0 +1,19 @@
|
||||
#include "memInfo.H"
|
||||
#include "IOstreams.H"
|
||||
#include "List.H"
|
||||
#include "vector.H"
|
||||
|
||||
using namespace Foam;
|
||||
|
||||
int main()
|
||||
{
|
||||
memInfo m;
|
||||
|
||||
Info<< m << endl;
|
||||
|
||||
List<vector> l(10000000, vector::one);
|
||||
|
||||
Info<< m.update() << endl;
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user