Adding rudimentary locking to ITSQLite3Database to kill errors.
[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 by iThink Software.
9  *      All Rights Reserved.
10  *
11  *      $Id$
12  *
13  */
14
15 #import <Foundation/Foundation.h>
16 #import <mach/mach.h>
17
18 /* For Mac OS X the default page size is 4096 (4K) */
19 #define DEFAULT_PAGE_SIZE 4096
20
21 @interface ITVirtualMemoryInfo : NSObject {
22         vm_statistics_data_t stat;
23 }
24
25 - (id)init;
26 - (int)pageSize;
27 - (int)freePages;
28 - (int)activePages;
29 - (int)inactivePages;
30 - (int)wiredPages;
31 - (int)faults;
32 - (int)copyOnWritePages;
33 - (int)zeroFilledPages;
34 - (int)reactivatedPages;
35 - (int)pageins;
36 - (int)pageouts;
37 - (int)hits;
38 - (int)lookups;
39 - (int)hitratePercentage;
40
41 @end