m4drat / memplusplus Goto Github PK
View Code? Open in Web Editor NEWC++ memory allocator with smart GC
C++ memory allocator with smart GC
Travis-CI: https://www.youtube.com/watch?v=3ulKzD2cmSw&list=PLs3KjaCtOwSZ2tbuV1hx8Xz-rFZTan2J1&index=83
AppVeyor: https://www.youtube.com/watch?v=R8OrWVVf5CM&list=PLs3KjaCtOwSZ2tbuV1hx8Xz-rFZTan2J1&index=84
CTest: https://www.youtube.com/watch?v=ZlMbqFcJEzA&list=PLs3KjaCtOwSZ2tbuV1hx8Xz-rFZTan2J1&index=86
General: https://www.youtube.com/watch?v=YbgH7yat-Jo
option(MPP_SECURE "Build with advanced security checks" OFF)
Specifically measure: Using valgrind to measure cache misses
Implement performance comparison with these memory allocators:
Useful links:
Don't forget to use clang stabilizer!
Add PROFILING definition and option to build
#!/bin/bash
# build the program (no special flags are needed)
g++ -std=c++11 cpuload.cpp -o cpuload
# run the program with callgrind; generates a file callgrind.out.12345 that can be viewed with kcachegrind
valgrind --tool=callgrind ./cpuload
# open profile.callgrind with kcachegrind
kcachegrind profile.callgrind
#!/bin/bash
# build the program; For our demo program, we specify -DWITHGPERFTOOLS to enable the gperftools specific #ifdefs
g++ -std=c++11 -DWITHGPERFTOOLS -lprofiler -g ../cpuload.cpp -o cpuload
# run the program; generates the profiling data file (profile.log in our example)
./cpuload
# convert profile.log to callgrind compatible format
pprof --callgrind ./cpuload profile.log > profile.callgrind
# open profile.callgrind with kcachegrind
kcachegrind profile.callgrind
1. auto ptr = SharedGcPtr<SharedGcPtr>((UserClass*)(void* ptr));
2. auto ptr = SharedGcPtr<SharedGcPtr>(SharedGcPtrptr);
3. auto ptr = SharedGcPtr<SharedGcPtr*>(SharedGcPtr* ptr);
Info:
E.g. some part of memory is manually-controlled, and another using GcPtr and GC. So add new info bit to the chunk structure: IsControlledByGc.
Linked to #67
Replace objects.svg with real example
https://eli.thegreenplace.net/2009/11/23/visualizing-binary-trees-with-graphviz
Add options module to operate with env variables.
Profiler
classEnvOptions
classMemoryManager
class (partially)Codecov + project badges: https://www.youtube.com/watch?v=FOcCFGkkQ9c
Problem occurs for newly created arena
JAVADOC_AUTOBRIEF is NO now. Rewrite all docs with explicit @brief tag.
Should be in new branch
We already have default std::allocator
interface that uses Allocate/Deallocate
functions directly. But we are going to get rid of these functions in the future (due to some problems described in #30). So we have to refactor this interface in such a way, so it's possible to use it without presence of Allocate/Deallocate
methods.
Resources:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.