You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Spyder性能分析器无法正确分析目标文件,始终分析旧代码

性能分析器始终显示旧代码状态的问题

每次尝试对代码进行性能分析时,分析结果始终停留在最后几次修改前的代码状态。我的程序由多个函数组成,末尾调用一个测试函数——此前我在测试function 1,之后将末尾的调用改为测试function 2,但此后每次分析仍显示调用function 1的结果。

性能分析器输出

[ WARN:0@1.960] global shadow_sift.hpp:13 SIFT_create DEPRECATED: cv.xfeatures2d.SIFT_create() is deprecated due SIFT tranfer to the main repository. https://github.com/opencv/opencv/issues/16736
QObject::moveToThread: Current thread (0x26c50a0) is not the object's thread (0x27b7580).
Cannot move to target thread (0x26c50a0)

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/home/fdeleu/miniconda3/lib/python3.10/site-packages/cv2/qt/plugins" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: xcb, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl.

已尝试的解决措施

  • 保存文件
  • 重启Spyder
  • 清除内核
  • 点击性能分析器面板右侧的清理按钮
  • 先分析其他测试文件再返回原文件(问题反而更严重)

环境信息

  • Linux系统(无法查看具体版本)
  • miniconda3环境
  • Python 3.10.10
  • Spyder 5.4.3
  • conda 23.3.1

内容的提问来源于stack exchange,提问作者Wonderous Wombat

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.16 09:32:26