This topic has been archived. It cannot be replied.
-
工作学习 / 专业技术讨论 / 急!做Linux的朋友请帮忙。我想参考TOP命令做嵌入式系统cpu性能分析。哪位能帮我传个TOP命令的源代码到我信箱:thanku99@gmail.com。或告诉我在linux包的什么目录下可找到(我没安装linux)。谢了先!
-thanku99(仙游);
2005-5-17
(#2300688@0)
-
top is complex. I wrote one before. It is rather easy. 3 days of work. I suggest you google for some idea then write one yourself. Sorry. I cannot give the code to you, because it is property.
-pleased(please);
2005-5-17
(#2301027@0)
-
Thanks. The problem is I have no idea what algorithm it is. Actually,some basic performance data like CPU load, tasks' CPU utilizationwould be enough. Appreciated if you could give me some idea or simple formula!
-thanku99(仙游);
2005-5-17
(#2301232@0)
-
Top is complicated because the kernel of the system do most of the job.
-pleased(please);
2005-5-18
(#2302696@0)
-
Another problem is all these tools is quite OS-specific.
-pleased(please);
2005-5-18
(#2302702@0)
-
http://directory.fsf.org/search/fsd-search.py?q=cpu
-oasis(oasis);
2005-5-17
(#2301033@0)
-
Thanks! A good link!!!
-thanku99(仙游);
2005-5-17
(#2301234@0)
-
do some research on /proc file system.
-647i(六不一没有);
2005-5-17
(#2301247@0)
-
different distributor has different package for cmd 'top. for rpm search( bin/src) use this url http://rpm.pbone.net/
-647i(六不一没有);
2005-5-17
(#2301264@0)
-
Check you email. The best way you need to have a Linux/FreeBSD environment to see how it works. Enjoy coding.
-bugfree(BugFree);
2005-5-18
(#2301354@0)
-
Thanks! I got it.
-thanku99(仙游);
2005-5-18
(#2301368@0)