2017-06-07 2 views
0

SBCL 1.3.9 erzeugt den folgenden Fehler, wenn ich versuche, den statistischen Profiler auszuführen. Wird start-profiling nicht exportiert?Statistischer SBCL-Profiler warnt vor undefinierter Funktion

* (in-package :cl-user) 
* (require :sb-sprof) 
* (sb-sprof:with-profiling (:report :flat) (bnb::solve)) 
; in: SB-SPROF:WITH-PROFILING (:REPORT :FLAT) 
;  (SB-SPROF:START-PROFILING :MAX-DEPTH 4611686018427387903 :THREADS 
;  (LIST SB-THREAD:*CURRENT-THREAD*)) 
; 
; caught STYLE-WARNING: 
; undefined function: SB-SPROF:START-PROFILING 
; 
; compilation unit finished 
; Undefined function: 
;  SB-SPROF:START-PROFILING 
; caught 1 STYLE-WARNING condition 

debugger invoked on a UNDEFINED-FUNCTION in thread 
#<THREAD "main thread" RUNNING {100292C913}>: 
    The function SB-SPROF:START-PROFILING is undefined. 

Type HELP for debugger help, or (SB-EXT:EXIT) to exit from SBCL. 

restarts (invokable by number or by possibly-abbreviated name): 
    0: [ABORT] Exit debugger, returning to top level. 

Antwort

1

Es scheint ein Problem mit Ihrer Distribution. Bitte aktualisieren Sie auf der letzten SBCL wich ist

The most recent version is SBCL 1.3.18, released May 30, 2017

Aber wenn man sich den Quellen in GitHub einen Blick

git log -S start-profiling --source --all 

commit 63f714af62d0ccdb9d4a793ab0245b036c3d8531 refs/tags/sbcl_1_0 
Author: Juho Snellman <[email protected]> 
Date: Fri Nov 17 02:15:47 2006 +0000 

    0.9.18.58: 
      Further SB-SPROF improvements. 

      * Allocation profiling on gencgc. When the profiler is running in 
       allocation profiling mode, the gc will signal profiler ticks 
       when new allocation regions are opened. 
      * Add :LOOP keyword argument to WITH-PROFILING, to allow specifying 
       whether the body should be evaluated repeatedly until the maximum 
       sample count is reached. 
      * Improve merging of code-components with multiple debug-funs, 
       better handling of multiple functions with the same name 
      * More documentation 
      * Also update the stepper documentation 

commit 554397512eea9d6e30067c5edc2def42006a5327 refs/tags/sbcl_0_8_12 
Author: Christophe Rhodes <[email protected]> 
Date: Mon Jun 21 11:33:35 2004 +0000 

    0.8.11.20: 
      Add SB-SPROF contrib 

Das funcion vor viel Zeit hinzugefügt wurde, so versuchen Sie bitte den neuesten Code und folgen the manual

auch, wenn Sie den Code überprüfen es has this mark

#-win32 

Also, wenn Sie Windows 32 Bits verwenden, sollte dies nicht funktionieren

+0

Dank anquegi zum Hinweis auf '# -win32'. Ich habe auf die neueste SBCL (für Windows-64) aktualisiert, wie Sie vorschlagen, und beachten Sie, dass beide: WIN32 und: X86-64 sind in * FEATURES *. Ich habe entfernt: WIN32, aber immer noch die gleiche undefinierte Funktion. Siehst du noch etwas, das ich ausprobieren kann? – davypough

+0

Sie sollten de Bibliothek mit diesem Flag wieder installieren, und versuchen Sie es erneut, aber es scheint, dass dies nicht funktionieren sollte – anquegi

Verwandte Themen