2017-06-07 6 views
0

統計プロファイラを実行しようとすると、SBCL 1.3.9が次のエラーを生成します。 start-profilingはエクスポートされていませんか?SBCL統計プロファイラが未定義の関数を警告します

* (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. 

答えて

1

配信に問題があるようです。最後SBCLウィッヒは

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

あるしかし、あなたはgithubの

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 

にソースを見てみた場合funcionが多く時間前に追加されたことを、その最新のコードを試してみてくださいに更新してくださいそしてあなたはそれがhas this mark

#-win32 
コードを調べる場合も the manual

に従ってください

Windows 32ビットを使用している場合、これはうまくいかないでしょう。

+0

「#-win32」を指摘してくれてありがとうございます。私は最新のSBCL(Windows-64用)をお勧めします.WIN32と:X86-64は* FEATURES *になっています。私は削除しました:WIN32は、まだ未定義の同じ機能を取得します。私は何か他に何かを見ますか? – davypough

+0

このフラグが設定されたライブラリを再インストールして再試行する必要がありますが、これはうまくいかないようです – anquegi

関連する問題