Enabling garbage collection support.
[ITFoundation.git] / ITVirtualMemoryInfo.h
1 /*
2  *      ITFoundation
3  *      ITVirtualMemoryInfo.h
4  *
5  *      Class that provides utilities for getting information on Mac OS X's mach
6  *              kernel's virtual memory settings and status.
7  *
8  *      Copyright (c) 2005 iThink Software
9  *
10  */
11
12 #import <Foundation/Foundation.h>
13 #import <mach/mach.h>
14
15 /* For Mac OS X the default page size is 4096 (4K) */
16 #define DEFAULT_PAGE_SIZE 4096
17
18 @interface ITVirtualMemoryInfo : NSObject {
19         vm_statistics_data_t stat;
20 }
21
22 - (id)init;
23 - (int)pageSize;
24 - (int)freePages;
25 - (int)activePages;
26 - (int)inactivePages;
27 - (int)wiredPages;
28 - (int)faults;
29 - (int)copyOnWritePages;
30 - (int)zeroFilledPages;
31 - (int)reactivatedPages;
32 - (int)pageins;
33 - (int)pageouts;
34 - (int)hits;
35 - (int)lookups;
36 - (int)hitratePercentage;
37
38 @end