cfad47cfa3/tads3/vmprofty.h

4b825dc642cb6eb9a060e54bf8d69288fbee4904cfad47cfa334b206c65f22086bcc5d63e6f70944
1
/* 
2
 *   Copyright (c) 2002 by Michael J. Roberts.  All Rights Reserved.
3
 *   
4
 *   Please see the accompanying license file, LICENSE.TXT, for information
5
 *   on using and copying this software.  
6
 */
7
/*
8
Name
9
  vmprofty.h - basic type definitions for the profiler
10
Function
11
  This defines some basic types for the profiler.  We use a separate header
12
  to allow finer-grained inclusions.
13
Notes
14
  
15
Modified
16
  08/03/02 MJRoberts  - Creation
17
*/
18
19
#ifndef VMPROFTY_H
20
#define VMPROFTY_H
21
22
/* ------------------------------------------------------------------------ */
23
/*
24
 *   Profiler time record.  We use a 64-bit value for the time; this gives
25
 *   the time as a delta from some arbitrary zero point, defined by the OS,
26
 *   as a 64-bit quantity in units defined by the OS.
27
 *   
28
 *   We use a 64-bit value to allow for OS-provided timers with very high
29
 *   precision.  The OS doesn't necessarily have to use the full 64 bits; if
30
 *   only 32-bit timer values are available, the OS code can simply set the
31
 *   high-order part to zero.
32
 */
33
struct vm_prof_time
34
{
35
    /* the high-order and low-order 32 bits of the time value */
36
    unsigned long hi;
37
    unsigned long lo;
38
};
39
40
41
#endif /* VMPROFTY_H */