ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
Classes | Namespaces | Macros | Functions
memory_test.cpp File Reference
#include "gtest/gtest.h"
#include "gmock/gmock.h"
#include <fstream>
#include <cstdio>
#include "../memory.h"
Include dependency graph for memory_test.cpp:

Classes

class  MemoryTest
 

Namespaces

namespace  GlobalV
 

Macros

#define private   public
 

Functions

 TEST_F (MemoryTest, Constructor)
 
 TEST_F (MemoryTest, CalculateMem)
 
 TEST_F (MemoryTest, Record)
 
 TEST_F (MemoryTest, printall)
 
 TEST_F (MemoryTest, finish)
 

Macro Definition Documentation

◆ private

#define private   public
  • Tested Functions:
    • calculate_mem
      • caculate memory consumed for various types
      • of data
    • record
      • record memory consumed during running
    • print_all
      • print memory consumed (> MB) in a
      • std::ofstream file

Function Documentation

◆ TEST_F() [1/5]

TEST_F ( MemoryTest  ,
CalculateMem   
)
Here is the call graph for this function:

◆ TEST_F() [2/5]

TEST_F ( MemoryTest  ,
Constructor   
)

◆ TEST_F() [3/5]

TEST_F ( MemoryTest  ,
finish   
)
Here is the call graph for this function:

◆ TEST_F() [4/5]

TEST_F ( MemoryTest  ,
printall   
)
Here is the call graph for this function:

◆ TEST_F() [5/5]

TEST_F ( MemoryTest  ,
Record   
)
Here is the call graph for this function: