CnPack Forum


 
Subject: CnWizards持续占用20%~30%的CPU
plzw
普通灌水员
Rank: 2



UID 24659
Digest Posts 0
Credits 50
Posts 19
点点分 50
Reading Access 10
Registered 2007-9-1
Status Offline
Post at 2009-1-31 23:52  Profile | Blog | P.M. 
CnWizards持续占用20%~30%的CPU

环境:
Windows 7
Delphi 2007
CnWizards 0.9.470/0.9.479

问题描述:
1、禁用CnWizards时,打开空IDE环境,稳定后CPU占用几乎为0%;新建一个VCL项目,不执行任何操作,CPU占用几乎为0%;
2、启用CnWizards时,打开空IDE环境,稳定后CPU占用几乎为0%;新建一个VCL项目,不执行任何操作,CPU使用率持续在20%~30%左右。


补充:
刚才通过禁用所有Wizards,然后逐项开启Wizard,发现问题在Editor Enhancements Wizard,启用该Wizard时CPU使用率明显提高,约15%~25%。

补充2:
再次试验了一下,当开启Show Editor Toolbar in Embedded Designer选项时,会导致CPU使用率提高,关闭此选项后CPU占用正常。

[ 本帖最後由 plzw 於 2009-2-1 00:11 編輯 ]
Top
plzw
普通灌水员
Rank: 2



UID 24659
Digest Posts 0
Credits 50
Posts 19
点点分 50
Reading Access 10
Registered 2007-9-1
Status Offline
Post at 2009-2-7 18:46  Profile | Blog | P.M. 
有没有D2007环境的测试一下,难道是我的个例?
Top
zjy
管理员
Rank: 9Rank: 9Rank: 9



UID 2
Digest Posts 6
Credits 2385
Posts 1543
点点分 2385
Reading Access 102
Registered 2002-12-16
Location China
Status Offline
Post at 2009-2-8 17:15  Profile | Site | Blog | P.M. 
请问您的Editor Toolbar上面放有哪些按钮?

最好把配置文件发上来看看:
C:\Program Files\CnPack\CnWizards\User\EditorToolBar.ini




Zhou JingYu
CnPack Administrator
http://www.cnpack.org/
Top
Passion (LiuXiao)
管理员
Rank: 9Rank: 9Rank: 9


UID 359
Digest Posts 19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
Post at 2009-2-9 14:26  Profile | Blog | P.M. 
在专家包空闲时,在BDS下会做类似于OnUpdate一样的动作判断工具栏是否应该显示,其中会有判断当前组件类名是否是TEditControl等,可能是这样的字符串比较的机制对CPU的占用较大。具体还有待进一步测试。
Top
plzw
普通灌水员
Rank: 2



UID 24659
Digest Posts 0
Credits 50
Posts 19
点点分 50
Reading Access 10
Registered 2007-9-1
Status Offline
Post at 2009-2-11 20:06  Profile | Blog | P.M. 
我的Editor Toolbar配置文件内容:

[ToolBar]
Button0=actCnEditorZoomFullScreen
Button1=actCnInputHelper
Button2=-
Button3=FileNewCommand
Button4=-
Button5=FileOpenCommand
Button6=FileSaveAllCommand
Button7=FileSaveAsCommand
Button8=-
Button9=ProjectAddCommand
Button10=ProjectRemoveCommand
Button11=ProjectOptionsCommand
Button12=ProjectBuildCommand
Button13=-
Button14=ProjectCompileAllCommand
Button15=ProjectBuildAllCommand
Button16=-
Button17=RunRunCommand
Button18=RunRunNoDebugCommand
Button19=RunResetCommand
Button20=RunStepOverCommand
Button21=RunTraceIntoCommand
Button22=RunUntilReturnCommand
Button23=RunGotoCursorCommand
Button24=-
Button25=actCnSrcTemplate1
Button26=actCnEditorWizard1
Button27=actCnProjectExtWizard1
Button28=actCnScriptWizard1
Button29=actCnFilesSnapshotWizard1
Button30=-
Button31=actCnUsesCleaner
Button32=actCnSourceDiffWizard
Button33=actCnWizConfig
Button34=-
Button35=actCnWizAboutHelp
Button36=actCnWizAboutAbout

红色部分为在默认工具栏新增的按钮。
Top
 




All times are GMT++8, the time now is 2024-11-23 10:51

    本论坛支付平台由支付宝提供
携手打造安全诚信的交易社区 Powered by Discuz! 5.0.0  © 2001-2006 Comsenz Inc.
Processed in 0.007355 second(s), 9 queries , Gzip enabled

Clear Cookies - Contact Us - CnPack Website - Archiver - WAP