f0e3bb8846a330ba2a74e4f31a17bf48a48a09bf
[ITFoundation.git] / ITVirtualMemoryInfo.h
1 /*
2  *      ITFoundation
3  *      ITVirtualMemoryInfo
4  *
5  *      Class that provides utilities for getting information
6  *      on Mac OS X's mach kernel's Virtual Memory settings
7  *      and status
8  *
9  *      Original Author : Joseph Spiros <joseph.spiros@ithinksw.com>
10  *      Responsibility  : Joseph Spiros <joseph.spiros@ithinksw.com>
11  *                      : Matt Judy <matt.judy@ithinksw.com>
12  *
13  *      Copyright (c) 2002 iThink Software.
14  *      All Rights Reserved
15  *
16  */
17
18 #import <Foundation/Foundation.h>
19 #import <mach/mach.h>
20
21 /* For this platform, as of this Mach version,
22  * the default page size is 4096, or 4k */
23 #define DEFAULT_PAGE_SIZE 4096
24
25
26 @interface ITVirtualMemoryInfo : NSObject {
27     vm_statistics_data_t stat;
28 }
29
30 - (id)init;
31 - (int)pageSize;
32 - (int)freePages;
33 - (int)activePages;
34 - (int)inactivePages;
35 - (int)wiredPages;
36 - (int)faults;
37 - (int)copyOnWritePages;
38 - (int)zeroFilledPages;
39 - (int)reactivatedPages;
40 - (int)pageins;
41 - (int)pageouts;
42 - (int)hits;
43 - (int)lookups;
44 - (int)hitratePercentage;
45
46 @end