Skip to content

bench on llm tab - #4246

Open
da-liii wants to merge 2 commits into
mainfrom
da/1182/llm
Open

bench on llm tab#4246
da-liii wants to merge 2 commits into
mainfrom
da/1182/llm

Conversation

@da-liii

@da-liii da-liii commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

What

点击 LLM Chat 标签页全链路耗时打点(debug_std-d std 开启),定位 ~400ms 的分布:

  • ChatController::createView 7 段计时(use-modules / load-all / build-infos / new-widget / connect / activate / misc)
  • ensureNewConversation / getOrCreatePanel / loadSessionContent 内 scheme 调用计时
  • QTChatTabWidget::paintEvent 首次绘制打点(界面真正可见时刻)
  • sync_chat_tab_mode show+focus 计时
  • lazy-keyboard-force-do 逐模块加载计时(覆盖 update_menus 后的空档)

实测分布

  • use-modules (llm chat-loader) ~57ms
  • scheme init(sync-dark-style + load-input-styles)~81ms
  • update_menus ~97ms

任务文档:devel/1182.md

🤖 Generated with Claude Code

da-liii and others added 2 commits August 7, 2026 23:47
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant