Skip to content

Commit

Permalink
1.0.10.23: Shuffle def* foo around for less compiler warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
Thiemo Seufer committed Oct 4, 2007
1 parent 32dc59b commit 2df0b23
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
30 changes: 15 additions & 15 deletions contrib/sb-sprof/sb-sprof.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,20 @@
;; number of times the call was sampled
(count 1 :type sb-int:index))

(defvar *sample-interval* 0.01
"Default number of seconds between samples.")
(declaim (type number *sample-interval*))

(defvar *alloc-interval* 4
"Default number of allocation region openings between samples.")
(declaim (type number *alloc-interval*))

(defvar *max-samples* 50000
"Default number of traces taken. This variable is somewhat misnamed:
each trace may actually consist of an arbitrary number of samples, depending
on the depth of the call stack.")
(declaim (type sb-int:index *max-samples*))

;;; Encapsulate all the information about a sampling run
(defstruct (samples)
;; When this vector fills up, we allocate a new one and copy over
Expand Down Expand Up @@ -339,28 +353,14 @@
profiling")
(declaim (type (member :cpu :alloc) *sampling-mode*))

(defvar *sample-interval* 0.01
"Default number of seconds between samples.")
(declaim (number *sample-interval*))

(defvar *alloc-region-size*
#-gencgc
(get-page-size)
;; This hardcoded 2 matches the one in gc_find_freeish_pages. It's not
;; really worth genesifying.
#+gencgc
(* 2 sb-vm:gencgc-page-size))
(declaim (number *alloc-region-size*))

(defvar *alloc-interval* 4
"Default number of allocation region openings between samples.")
(declaim (number *alloc-interval*))

(defvar *max-samples* 50000
"Default number of traces taken. This variable is somewhat misnamed:
each trace may actually consist of an arbitrary number of samples, depending
on the depth of the call stack.")
(declaim (type sb-int:index *max-samples*))
(declaim (type number *alloc-region-size*))

(defvar *samples* nil)
(declaim (type (or null samples) *samples*))
Expand Down
2 changes: 1 addition & 1 deletion version.lisp-expr
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
;;; checkins which aren't released. (And occasionally for internal
;;; versions, especially for internal versions off the main CVS
;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".)
"1.0.10.22"
"1.0.10.23"

0 comments on commit 2df0b23

Please sign in to comment.