1.0.6.4: restore buildability on non-SBCL hosts
[sbcl.git] / src / compiler / dyncount.lisp
blobc23c5a8d7f14994e1a3802bf21b5016b4513940c
1 ;;;; support for collecting dynamic vop statistics
3 ;;;; This software is part of the SBCL system. See the README file for
4 ;;;; more information.
5 ;;;;
6 ;;;; This software is derived from the CMU CL system, which was
7 ;;;; written at Carnegie Mellon University and released into the
8 ;;;; public domain. The software is in the public domain and is
9 ;;;; provided with absolutely no warranty. See the COPYING and CREDITS
10 ;;;; files for more information.
12 (in-package "SB!DYNCOUNT")
14 (defvar *collect-dynamic-statistics* nil
15 #!+sb-doc
16 "When T, emit extra code to collect dynamic statistics about vop usages.")
18 (defvar *dynamic-counts-tn* nil
19 #!+sb-doc
20 "Holds the TN for the counts vector.")
22 (def!struct (dyncount-info (:make-load-form-fun just-dump-it-normally))
23 for
24 (costs (missing-arg) :type (simple-array (unsigned-byte 32) (*)))
25 (counts (missing-arg) :type (simple-array (unsigned-byte 32) (*))))
27 (defprinter (dyncount-info)
28 for
29 costs
30 counts)