forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Getting CPU Usage and Memory Usage for a task

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
X-Tools
Valued Contributor
Valued Contributor


Joined: 20 Sep 2001
Posts: 296
Location: Germany

PostPosted: Sun Dec 07, 2003 1:52 pm    Post subject: Getting CPU Usage and Memory Usage for a task Reply with quote

Hi,

does somebody have an idea how to get the cpu usage and memory usage of a specific task like the windows task manager shows ?

I want to build a debugging program for my intranet because it seems that the sub-applications of my intranet need much more memory since I changed them to vds5.

Thanks for your help.

Bye, Fabian
Back to top
View user's profile Send private message Send e-mail Visit poster's website
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Sun Dec 07, 2003 2:07 pm    Post subject: Reply with quote

It can probably be done with the API and my guess is to use kernel32.dll
but I'm not sure. If I can find anything I'll post it for you here. Smile

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
X-Tools
Valued Contributor
Valued Contributor


Joined: 20 Sep 2001
Posts: 296
Location: Germany

PostPosted: Mon Dec 22, 2003 10:51 am    Post subject: Reply with quote

Hi Freeze,

did you find out something about this ?

Thanks,

Bye, Fabian
Back to top
View user's profile Send private message Send e-mail Visit poster's website
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Mon Dec 22, 2003 11:50 am    Post subject: Reply with quote

I'm sorry, I couldn't find anything. Don't know Perhaps someone could make a DLL
to do this or something. Smile

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Mon Dec 22, 2003 7:53 pm    Post subject: Reply with quote

I've been trying to work on the api's for this, but to no avail yet. It's
pretty complicated to me trying to get the threads and processes and
such all tied together and then get the info.

-Garrett

_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Back to top
View user's profile Send private message
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Tue Dec 23, 2003 10:03 am    Post subject: Reply with quote

This one talks about doing that in VB.
Haven't looked if feasible to port it directly to VDS.
http://www.visualbasicforum.com/t36647.html

If U don't want 0x this API may make life easier?
http://www.mentalis.org/apilist/GetProcessMemoryInfo.shtml

_________________
Regards
- CodeScript
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group