#include <iostream>
#include <map>
#include <windows.h>
#include "psapi.h"
#include <assert.h>
#include <new>
#include <crtdbg.h>
#include <string>
#include <stdio.h>
#include <malloc.h>
#include "mkl.h"
|
| SYSTEM_INFO | klWinSystemInfo (ofstream &_tex) |
| |
| MEMORYSTATUSEX | klWinMemoryInfo (ofstream &_tex) |
| |
| bool | klCheckFreeMemory (size_t size) |
| |
| void | klPrintModules (ofstream &_tex) |
| |
| char * | ConvertToHex (unsigned char *Ptr, char *buffer, __int64 size) |
| |
| void * | klHeapAlloc (size_t inSize, void *theHeap) |
| |
| bool | klHeapFree (void *inPtr, void *theHeap) |
| |
| void * | klRedZoneHeapAlloc (size_t inSize, void *theHeap, const char *inFile, int inLineNum) |
| |
| void * | klRedZoneHeapAlloc (size_t inSize, void *theHeap) |
| |
| bool | klRedZoneHeapFree (void *inPtr, void *theHeap, const char *inFile, int inLineNum) |
| |
| bool | klRedZoneHeapFree (void *inPtr, void *theHeap) |
| |
| void | klCreateLowMemoryResourceNotification (void) |
| |
| bool | klQueryLowMemoryResourceNotification (int *answer) |
| |
| #define KLMEM_FOOT_GUARD_BYTES 0xEFEFEFEFEFEFEFEF |
| #define KLMEM_HEAD_GUARD_BYTES 0xABABABABABABABAB |
| #define KLMEM_HEAD_STRSIZE 256 |
| #define KLMEM_HEAD_TIMESIZE 256 |
| #define KLMEM_MAGIC_NUMBER 0x4005bf0a8b14576a |
| char* ConvertToHex |
( |
unsigned char * |
Ptr, |
|
|
char * |
buffer, |
|
|
__int64 |
size |
|
) |
| |
|
inline |
| bool klCheckFreeMemory |
( |
size_t |
size | ) |
|
| void klCreateLowMemoryResourceNotification |
( |
void |
| ) |
|
| void * klHeapAlloc |
( |
size_t |
inSize, |
|
|
void * |
theHeap |
|
) |
| |
|
inline |
| bool klHeapFree |
( |
void * |
inPtr, |
|
|
void * |
theHeap |
|
) |
| |
|
inline |
| void klPrintModules |
( |
ofstream & |
_tex | ) |
|
| bool klQueryLowMemoryResourceNotification |
( |
int * |
answer | ) |
|
| void * klRedZoneHeapAlloc |
( |
size_t |
inSize, |
|
|
void * |
theHeap, |
|
|
const char * |
inFile, |
|
|
int |
inLineNum |
|
) |
| |
|
inline |
| void * klRedZoneHeapAlloc |
( |
size_t |
inSize, |
|
|
void * |
theHeap |
|
) |
| |
|
inline |
| bool klRedZoneHeapFree |
( |
void * |
inPtr, |
|
|
void * |
theHeap, |
|
|
const char * |
inFile, |
|
|
int |
inLineNum |
|
) |
| |
|
inline |
| bool klRedZoneHeapFree |
( |
void * |
inPtr, |
|
|
void * |
theHeap |
|
) |
| |
|
inline |
| MEMORYSTATUSEX klWinMemoryInfo |
( |
ofstream & |
_tex | ) |
|
| SYSTEM_INFO klWinSystemInfo |
( |
ofstream & |
_tex | ) |
|