aboutsummaryrefslogtreecommitdiffstats
path: root/mps/code/mpm.h
diff options
context:
space:
mode:
authorRichard Kistruck2007-06-29 14:08:00 +0100
committerRichard Kistruck2007-06-29 14:08:00 +0100
commit4df14dcbf8fbfcbe8aa2065e3632d38f44684fa4 (patch)
tree3f9fd329b03cb1af13f42d53ddc37deea365340a /mps/code/mpm.h
parent8b86a6e7f9c3499e8d3ad546ed395133bd59e63a (diff)
downloademacs-4df14dcbf8fbfcbe8aa2065e3632d38f44684fa4.tar.gz
emacs-4df14dcbf8fbfcbe8aa2065e3632d38f44684fa4.zip
Mps br/diag: rename #def "diagnostics" as "statistics", as all the
macros it controls are called "STATISTIC_blah", and same replacement in comments. The term "diagnostic" means something else now: see design/diag/. Copied from Perforce Change: 162692 ServerID: perforce.ravenbrook.com
Diffstat (limited to 'mps/code/mpm.h')
-rw-r--r--mps/code/mpm.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/mps/code/mpm.h b/mps/code/mpm.h
index 404d0bac54a..44b045b0c1d 100644
--- a/mps/code/mpm.h
+++ b/mps/code/mpm.h
@@ -911,7 +911,7 @@ extern Size VMMapped(VM vm);
911extern void StackProbe(Size depth); 911extern void StackProbe(Size depth);
912 912
913 913
914/* STATISTIC -- gather diagnostics (in some varieties) 914/* STATISTIC -- gather statistics (in some varieties)
915 * 915 *
916 * The argument of STATISTIC is an expression; the expansion followed by 916 * The argument of STATISTIC is an expression; the expansion followed by
917 * a semicolon is syntactically a statement. 917 * a semicolon is syntactically a statement.
@@ -920,7 +920,7 @@ extern void StackProbe(Size depth);
920 * a semicolon is syntactically a statement. 920 * a semicolon is syntactically a statement.
921 * 921 *
922 * STATISTIC_WRITE is inserted in WriteF arguments to output the values 922 * STATISTIC_WRITE is inserted in WriteF arguments to output the values
923 * of diagnostic fields. 923 * of statistic fields.
924 * 924 *
925 * .statistic.whitehot: The implementation of STATISTIC for 925 * .statistic.whitehot: The implementation of STATISTIC for
926 * non-statistical varieties passes the parameter to DISCARD to ensure 926 * non-statistical varieties passes the parameter to DISCARD to ensure
@@ -928,13 +928,13 @@ extern void StackProbe(Size depth);
928 * passed as part of a comma-expression so that its type is not 928 * passed as part of a comma-expression so that its type is not
929 * important. This permits an expression of type void. */ 929 * important. This permits an expression of type void. */
930 930
931#if defined(DIAGNOSTICS) 931#if defined(STATISTICS)
932 932
933#define STATISTIC(gather) BEGIN (gather); END 933#define STATISTIC(gather) BEGIN (gather); END
934#define STATISTIC_STAT(gather) BEGIN gather; END 934#define STATISTIC_STAT(gather) BEGIN gather; END
935#define STATISTIC_WRITE(format, arg) (format), (arg), 935#define STATISTIC_WRITE(format, arg) (format), (arg),
936 936
937#elif defined(DIAGNOSTICS_NONE) 937#elif defined(STATISTICS_NONE)
938 938
939#define STATISTIC(gather) DISCARD(((gather), 0)) 939#define STATISTIC(gather) DISCARD(((gather), 0))
940#define STATISTIC_STAT(gather) DISCARD_STAT(gather) 940#define STATISTIC_STAT(gather) DISCARD_STAT(gather)
@@ -942,7 +942,7 @@ extern void StackProbe(Size depth);
942 942
943#else 943#else
944 944
945#error "No diagnostics configured." 945#error "No statistics configured."
946 946
947#endif 947#endif
948 948