KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > test > internal > performance > InternalDimensions


1 /*******************************************************************************
2  * Copyright (c) 2000, 2004 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.test.internal.performance;
12
13 import org.eclipse.test.internal.performance.data.Dim;
14 import org.eclipse.test.internal.performance.data.Unit;
15
16 /**
17  * Some hard coded measurement id's.
18  */

19 public interface InternalDimensions {
20     
21 // Common:
22
// OS Counters:
23
Dim
24             SYSTEM_TIME= new Dim(2, Unit.SECOND, 1000), // System.currentTimeMillis. "System Time"
25
USED_JAVA_HEAP= new Dim(3, Unit.BYTE), // Runtime.totalMemory() - Runtime.freeMemory()
26
WORKING_SET= new Dim(4, Unit.BYTE), // the working set (or on Linux the resident set). "Working Set"
27
// USER_TIME= new Dim(10, Unit.SECOND, 1000), // the amount of elapsed user time. "User time"
28
KERNEL_TIME= new Dim(11, Unit.SECOND, 1000), // the amount of elapsed kernel time. "Kernel time"
29
CPU_TIME= new Dim(20, Unit.SECOND, 1000), // the amount of CPU time we have used so far. "CPU Time"
30
INVOCATION_COUNT= new Dim(52, Unit.INVOCATION, 1); // the number of method invocations. "Invocation Count"
31

32 // OS Info:
33
Dim
34                 PHYSICAL_TOTAL= new Dim(24, Unit.BYTE), // the amount of physical memory in bytes. "Physical Memory"
35
SYSTEM_CACHE= new Dim(26, Unit.BYTE); // the amount of system cache memory in bytes. "System Cache"
36

37 // Windows:
38
// OS Counters:
39
Dim
40             COMITTED= new Dim(7, Unit.BYTE), // "Committed"
41
WORKING_SET_PEAK= new Dim(8, Unit.BYTE), // "Working Set Peak"
42
ELAPSED_PROCESS= new Dim(9, Unit.SECOND, 1000), // "Elapsed Process"
43
PAGE_FAULTS= new Dim(19), // "Page Faults"
44
GDI_OBJECTS= new Dim(34), // "GDI Objects"
45
USER_OBJECTS= new Dim(35), // "USER Objects"
46
OPEN_HANDLES= new Dim(36), // "Open Handles"
47
READ_COUNT= new Dim(38, Unit.BYTE), // "Read Count"
48
WRITE_COUNT= new Dim(39, Unit.BYTE), // "Write Count"
49
BYTES_READ= new Dim(40, Unit.BYTE), // "Bytes Read"
50
BYTES_WRITTEN= new Dim(41, Unit.BYTE); // "Bytes Written"
51

52 // OS Info:
53
Dim
54                 COMMIT_LIMIT= new Dim(22), // "Commit Limit"
55
COMMIT_PEAK= new Dim(23), // "Commit Peak"
56
PHYSICAL_AVAIL= new Dim(25, Unit.BYTE), // "Physical Available"
57
KERNEL_TOTAL= new Dim(27), // "Kernel Total"
58
KERNEL_PAGED= new Dim(28), // "Kernel Paged"
59
KERNEL_NONPAGED= new Dim(29), // "Kernel Nonpaged"
60
PAGE_SIZE= new Dim(30, Unit.BYTE), // "Page Size"
61
HANDLE_COUNT= new Dim(31), // "Handle Count"
62
PROCESS_COUNT= new Dim(32), // "Process Count"
63
THREAD_COUNT= new Dim(33), // "Thread Count"
64
COMMIT_TOTAL= new Dim(37); // "Commit Total"
65

66 // Linux:
67
// OS Counters:
68
Dim
69             HARD_PAGE_FAULTS= new Dim(42), // the number of hard page faults. A page had to be fetched from disk. "Hard Page Faults"
70
SOFT_PAGE_FAULTS= new Dim(43), // the number of soft page faults. A page was not fetched from disk. "Soft Page Faults"
71
TRS= new Dim(44, Unit.BYTE), // the amount of memory in bytes occupied by text (i.e. code). "Text Size"
72
DRS= new Dim(45, Unit.BYTE), // the amount of memory in bytes occupied by data or stack. "Data Size"
73
LRS= new Dim(46, Unit.BYTE); // the amount of memory in bytes occupied by shared code. "Library Size"
74

75 // OS Info:
76
Dim
77                 USED_LINUX_MEM= new Dim(48, Unit.BYTE), // the amount of memory that Linux reports is used. From /proc/meminfo. "Used Memory"
78
FREE_LINUX_MEM= new Dim(49, Unit.BYTE), // the amount of memory that Linux reports is free. From /proc/meminfo. "Free Memory"
79
BUFFERS_LINUX= new Dim(50, Unit.BYTE); // the amount of memory that Linux reports is used by buffers. From /proc/meminfo. "Buffers Memory"
80

81 // Mac:
82
// OS Counters:
83
// OS Info:
84
}
85
Popular Tags