Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add a small allocations counter in SMPI.
authorAugustin Degomme <adegomme@gmail.com>
Sun, 14 Mar 2021 22:22:20 +0000 (23:22 +0100)
committerAugustin Degomme <adegomme@gmail.com>
Sun, 14 Mar 2021 22:39:01 +0000 (23:39 +0100)
commit2247d8d7ee677ba1a970301b456537022c53f503
tree3799b1498f61a67dca4caddb5087c20956954302
parent5989d88c0d49634e7a562168d6839a60c2cb45d6
Add a small allocations counter in SMPI.
With smpi/display-analysis, it can display the total memory allocated by malloc/calloc calls intecepted by SMPI.
It outputs at the end of the simulation the largest one, its address, and the number of times it was called, and hints to use sharing options on it.
To avoid too many globals, and singletons, I used the namespace smpi::utils to regroup all of these analysis tools. Please tell if this is awful C++ :p
src/smpi/include/smpi_utils.hpp
src/smpi/internals/smpi_bench.cpp
src/smpi/internals/smpi_config.cpp
src/smpi/internals/smpi_global.cpp
src/smpi/internals/smpi_host.cpp
src/smpi/internals/smpi_shared.cpp
src/smpi/internals/smpi_utils.cpp
src/surf/network_smpi.cpp