首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >SBCL统计分析器警告未定义的函数

SBCL统计分析器警告未定义的函数
EN

Stack Overflow用户
提问于 2017-06-08 02:26:24
回答 1查看 247关注 0票数 0

当我尝试运行统计分析器时,SBCL 1.3.9产生以下错误。是否不导出start-profiling

代码语言:javascript
复制
* (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.
EN

回答 1

Stack Overflow用户

发布于 2017-06-08 22:03:32

这似乎是你的发行版的一个问题。请更新到最新的SBCL

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

但是如果你看一下github中的源代码

代码语言:javascript
复制
git log -S start-profiling --source --all

commit 63f714af62d0ccdb9d4a793ab0245b036c3d8531 refs/tags/sbcl_1_0
Author: Juho Snellman <jsnell@iki.fi>
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 <csr21@cam.ac.uk>
Date:   Mon Jun 21 11:33:35 2004 +0000

    0.8.11.20:
            Add SB-SPROF contrib

这个函数是很久以前添加的,所以请尝试最新的代码并遵循the manual

此外,如果您检查代码,它将执行has this mark

代码语言:javascript
复制
#-win32

因此,如果您使用的是windows32位,这应该不会起作用。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/44420195

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档