nethercote | 5912c81 | 2004-02-15 15:38:08 +0000 | [diff] [blame] | 1 | /* This file is part of hp2ps, a graph drawer for memory profiles. |
| 2 | Copyright (C) 2002 The University Court of the University of Glasgow. |
| 3 | This program is governed by the license contained in the file LICENSE. */ |
| 4 | |
nethercote | c9f3692 | 2004-02-14 16:40:02 +0000 | [diff] [blame] | 5 | #ifndef DEFINES_H |
| 6 | #define DEFINES_H |
| 7 | |
| 8 | /* |
| 9 | * Things that can be altered. |
| 10 | */ |
| 11 | |
| 12 | #define THRESHOLD_PERCENT _thresh_ /* all values below 1% insignificant */ |
| 13 | #define DEFAULT_THRESHOLD 1.0 |
| 14 | extern floatish _thresh_; |
| 15 | |
| 16 | #define TWENTY _twenty_ /* show top 20 bands, grouping excess */ |
| 17 | #define DEFAULT_TWENTY 20 /* this is default and absolute maximum */ |
| 18 | extern int _twenty_; |
| 19 | |
| 20 | #define LARGE_FONT 12 /* Helvetica 12pt */ |
| 21 | #define NORMAL_FONT 10 /* Helvetica 10pt */ |
| 22 | |
| 23 | #define BORDER_HEIGHT 432.0 /* page border box 432pt (6 inches high) */ |
| 24 | #define BORDER_WIDTH 648.0 /* page border box 648pt (9 inches wide) */ |
| 25 | #define BORDER_SPACE 5.0 /* page border space */ |
| 26 | #define BORDER_THICK 0.5 /* page border line thickness 0.5pt */ |
| 27 | |
| 28 | |
| 29 | #define TITLE_HEIGHT 20.0 /* title box is 20pt high */ |
| 30 | #define TITLE_TEXT_FONT LARGE_FONT /* title in large font */ |
| 31 | #define TITLE_TEXT_SPACE 6.0 /* space between title text and box */ |
| 32 | |
| 33 | |
| 34 | #define AXIS_THICK 0.5 /* axis thickness 0.5pt */ |
| 35 | #define AXIS_TEXT_SPACE 6 /* space between axis legends and axis */ |
| 36 | #define AXIS_TEXT_FONT NORMAL_FONT /* axis legends in normal font */ |
| 37 | #define AXIS_Y_TEXT_SPACE 35 /* space for y axis text */ |
| 38 | |
| 39 | #define KEY_BOX_WIDTH 14 /* key boxes are 14pt high */ |
| 40 | |
| 41 | #define SMALL_JOB_STRING_WIDTH 35 /* small title for 35 characters or less */ |
| 42 | #define BIG_JOB_STRING_WIDTH 80 /* big title for everything else */ |
| 43 | |
| 44 | #define GRAPH_X0 (AXIS_Y_TEXT_SPACE + (2 * BORDER_SPACE)) |
| 45 | #define GRAPH_Y0 (AXIS_TEXT_FONT + (2 * BORDER_SPACE)) |
| 46 | |
| 47 | |
| 48 | /* |
| 49 | * Things that should be left well alone. |
| 50 | */ |
| 51 | |
| 52 | |
| 53 | |
| 54 | #define START_X 72 /* start 72pt (1 inch) from left (portrait) */ |
| 55 | #define START_Y 108 /* start 108pt (1.5 inch) from bottom (portrait) */ |
| 56 | |
| 57 | #define NUMBER_LENGTH 32 |
| 58 | |
| 59 | #define N_CHUNK 24 |
| 60 | |
| 61 | #define VERSION "0.25" /* as of 95/03/21 */ |
| 62 | |
| 63 | #define max(x,y) ((x) > (y) ? (x) : (y)) /* not everyone has this */ |
| 64 | |
| 65 | #endif /* DEFINES_H */ |