Modules/Allocators
IlushaShurupov f46ea7e0fb Testing
2024-11-24 22:36:45 +03:00
..
private Allocators Testing Added. Pull and Chunk allocators updates. 2023-07-08 15:30:55 +03:00
public Testing 2024-11-24 22:36:45 +03:00
tests Allocators Testing Added. Pull and Chunk allocators updates. 2023-07-08 15:30:55 +03:00
CMakeLists.txt Strings Initial 2024-11-24 22:36:45 +03:00
README.md Allocators Testing Added. Pull and Chunk allocators updates. 2023-07-08 15:30:55 +03:00

Profiling

Memory Leaks

Example program with memory leaks:

#include "allocators.h"

void test_call22() { new int; }
void test_call21() { new float; }

void test_call11() {
  test_call21();
  test_call22();
}

int main(char argc, char* argv[]) {
  tp::ModuleManifest* ModuleDependencies[] = { &tp::gModuleAllocators, NULL };
  tp::ModuleManifest TestModule("Test", NULL, NULL, ModuleDependencies);
  TestModule.initialize();
  
  test_call11();
  
  TestModule.deinitialize();
}

If memory leaks were detected it will be loged in the output console.

image

Also debug.memleaks binary will be generated in the working directory that can be viewved with MemLeaks Viewver.

image

Memory Usage Analisys

Currently outdated

Benchmarks

Currently outdated