일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- SciPy
- index
- dataframe
- Series
- Numpy
- DFS
- synology
- CNN
- Splunk
- imread
- ipad
- mariadb
- SPL
- pycharm
- 알고리즘
- GT-S80
- Button
- javascript
- mean
- pandas
- pip
- Lotto
- GitHub
- RNN
- LSTM
- 삼성소프트웨어멤버십
- install
- Python
- E-P1
- keras
- Today
- Total
잠토의 잠망경
[Code Project]Heap Memory Manager and Garbage Collector 본문
Introduction
This article demonstrates a method to try and solve a common problem hated by most C++ programmers: memory leaks and memory overruns. The method used in this article is to track all memory allocated by the program. It also has basic protection checks whether the memory written to the allocated block has overrun the number of bytes actually allocated.
This method also lets you organize and group allocated memory by ID or by name. Giving a name to a memory allocation gives the advantage that you can get the memory allocated by name while not needing to keep a pointer running around. Giving a group ID to an allocation helps the programmer to keep memory allocations grouped and thus can call a single function to deallocate all memory of a certain group.
출처: http://www.codeproject.com/KB/cpp/HeapMemTracker.aspx