Initial revision
[sbcl.git] / src / compiler / dyncount.lisp
1 ;;;; support for collecting dynamic vop statistics
2
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.
11
12 (in-package "SB!DYNCOUNT")
13
14 (file-comment
15   "$Header$")
16
17 (defvar *collect-dynamic-statistics* nil
18   #!+sb-doc
19   "When T, emit extra code to collect dynamic statistics about vop usages.")
20
21 (defvar *dynamic-counts-tn* nil
22   #!+sb-doc
23   "Holds the TN for the counts vector.")
24
25 (def!struct (dyncount-info (:make-load-form-fun just-dump-it-normally))
26   for
27   (costs (required-argument) :type (simple-array (unsigned-byte 32) (*)))
28   (counts (required-argument) :type (simple-array (unsigned-byte 32) (*))))
29
30 (defprinter (dyncount-info)
31   for
32   costs
33   counts)