mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-16 16:50:21 +02:00
vm no longer measures bogoclock or times, relies on os for that
* libguile/vm.h (struct scm_vm): Remove "time" and "clock" members. The time was bogusly measured, and the "clock" measured instructions retired, which is not a very useful measurement, and it was causing lots of memory accesses. Not that I have done a proper profile, though... (scm_vm_stats): Remove this procedure, which provided access to "time" and "clock". * libguile/vm.c: * libguile/vm-engine.h: * libguile/vm-engine.c: * libguile/vm-i-system.c: Adapt to scm_vm changes and scm_vm_stats removal. * module/system/repl/command.scm: * module/system/vm/vm.scm: Adapt to vm-stats removal by removing vm-stats from <repl>.
This commit is contained in:
parent
349d5c4428
commit
6c20a0b34b
8 changed files with 4 additions and 55 deletions
|
@ -24,7 +24,7 @@
|
|||
#:use-module (system base language)
|
||||
#:use-module (system vm vm)
|
||||
#:export (<repl> make-repl repl-vm repl-language repl-options
|
||||
repl-tm-stats repl-gc-stats repl-vm-stats
|
||||
repl-tm-stats repl-gc-stats
|
||||
repl-welcome repl-prompt repl-read repl-compile repl-eval
|
||||
repl-parse repl-print repl-option-ref repl-option-set!
|
||||
puts ->string user-error))
|
||||
|
@ -34,7 +34,7 @@
|
|||
;;; Repl type
|
||||
;;;
|
||||
|
||||
(define-record/keywords <repl> vm language options tm-stats gc-stats vm-stats)
|
||||
(define-record/keywords <repl> vm language options tm-stats gc-stats)
|
||||
|
||||
(define repl-default-options
|
||||
'((trace . #f)
|
||||
|
@ -46,8 +46,7 @@
|
|||
#:language (lookup-language lang)
|
||||
#:options repl-default-options
|
||||
#:tm-stats (times)
|
||||
#:gc-stats (gc-stats)
|
||||
#:vm-stats (vm-stats (the-vm))))
|
||||
#:gc-stats (gc-stats)))
|
||||
|
||||
(define (repl-welcome repl)
|
||||
(let ((language (repl-language repl)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue