|
Why not enum the threads under the processes?
|
|
|
|
|
My bad, you do enum threads...great application...beats the hell out of perfmon.exe...DO NOT give out source or you will be sorry...only share snippets...I learned my lesson the hard way...Cheers!!!;)
|
|
|
|
|
how about sharing the source?
|
|
|
|
|
Darren
Ok the situation, I'm just about to start selling commercial software on the internet. In time I want my own company. Now I'm currently revising the ProcessStudio code so it can record stats and playback the stats. The UI is going to be improved as well. On that point I could not possible release the source code as it will affect my sales .
I get a few *strange* requests each month from people demanding (yes demanding) the source, and I guess other people can see $$$ in this type of product.
I'm a charitable guy and I see you have submitted a article to code project, so which part of the code are you interested in (I can guess, the bit that enumerates the processes and stats - right?).
Email me outside of codeproject and I'll do my best to help you.
Normski. - Professional Windows Programmer
|
|
|
|
|
If you don't want to let people steal your code...
... use GNU GPL.
|
|
|
|
|
That don't stop asian sector of world.
|
|
|
|
|
If you choose a white background in the Colors dialog to something other than black, the background overwrites the color on the CPU and memory bars. For a dramatic example of this bug, set the background to white, the text to black, the grid to black, and all the bars to black. The grid disappears and the bars are visible only as outlines. If you double click on a process to get the detail view, the chart of activity appears in white (invisible), as does the name of the process you're viewing the detail on (to the right of the icon at the top of the view window).
If you are doing any maintenance on this, it would be nice to be able to set the background color without nuking the display.
He was allying himself to science, for what was science but the absence of prejudice backed by the presence of money? --- Henry James, The Golden Bowl
|
|
|
|
|
get the message ... Can't find PSAPI.dll
|
|
|
|
|
got the message, get this message "look your Platform SDK"
Norm Almond
Chief Technical Architect
FS Walker Hughes Limited
|
|
|
|
|
http://www.codeproject.com/docview/graphfx.asp
Thanks Norm!
Dan
|
|
|
|
|
I really like the graphical representation given using this tool. However, it seems to use a large amount of CPU time (16% on my machine in the background, 30% with the mouse in the window). It also makes the resources bounce all over. Not that great for detecting Resource leaks.
A "lightweight" mode might be nice
|
|
|
|
|
Yes I've noticed, the smaller the window the 'lighter' the impact.
I've tracked this down to double buffering technique, which uses BitBlt, this seems to be rather an intensive operation in CPU cycles.
I will look into re-engineering the code so it's more effiecent.
Thanks for the comments
|
|
|
|
|
How about using Direct-Draw for the window, or, at least, implementing dirty-rectangle handling?
-=- James
|
|
|
|
|
James
I tried implementing dirty-rectangle handling early on in the project, not much performance gain for the complexity of the code.
Now this application only works with WinNT sp3 or Win2K, what version of DirectX would be required? Could I use the base level bundled with the above operating systems?
Also my DirectX knowledge is nil, I have done zilch games programming. Have you any details on how I would implement directx with a windows program (without diving into MSDN)?
|
|
|
|
|
The lowest common denomitator that will work with NT is DX3. MSDN still has a DX3 sdk on it somewhere (I remember grabbing it a few months back)
I doubt it's the display to screen that is hurting your performance, as modern graphics adapters are almost as fast as a null adapter for 2d operations. And if you are constantly updating the bitmaps,
you still will be transfering images over the bus, so I don't think writing a DX version is going to
save you much cpu. Pushing bits around is pushing bits around. ^_^
Where DX would help is if you have some bitmaps you wish to load into the video ram for redisplay, then the video card can just assemble the display from all the preloaded surfaces, which takes almost no main cpu work.
Jim Wuerch
Jim Wuerch
www.miwasoft.com
Quote from my readme files:
"This is BETA software, and as such may completely destroy your computer, change the alignment of the planets and invert the structure of the universe."
|
|
|
|
|
I like it, but I have the following suggestions:
1) If the list is sorted, a newly started app should be added and sorted, not added to the end of the list as it is.
2) It would be nice to have column headers, with the ability to change the sorting just by clicking on them, similar to task manager.
3) F5 should refresh the list as it does most other software.
4) I would prefer the gradient fill is a gradient over the 0-100%, not whatever the actual percentage used is. This way color as well as bar length can be quickly used to determine application reserouces in use.
5) Add the ability to auto-clear stale processes, as task manager does. I like to ability to keep them occasionally, but my default would be to clear them out as they become stale.
A side note, I've had some troubles with the application after going to full-screen mode. I can't get out of it (under NT 4.0). The app is still there, but the window doesn't appear. Strange. Works fine if I avoid this mode.
|
|
|
|
|
I can now download the executable - I'd be really interested to be able to download the source
|
|
|
|
|
I think for this type of project the viewing the source would'nt be beneficial due to the size of the project.
But... if your interested on how I did some parts of the application or would like some portions of the code, I will quite happily post them as a new article.
Also some parts of the code are owned by my company.
|
|
|
|
|
I agree with richard. I'd love to see the source. I think bigger projects can be better demonstrations of how to code successfully + you get the added benefit of having hundreds of people debugging and adding to your base code.
i'm particularly interested in seeing how you get the cpu utilization for each task. and how you graphically dynamically draw on the window. i have a little doowop program on this site that enumerates all tasks and allows you to kill them but i couldn't figure out how to get cpu. actually i'd love to see the source for the winnt/2k task manager.
1 problem with your program. i can only run it in maximized or full screen - not normal mode. why is that?
Thanks
|
|
|
|
|
I'd also love to see the code for how to extract the thread CPU utilization and memory usage. It's not a big priority thing for me, but if I see an example I'll definatly insert it to my software to be able to warn if usage is high. This would benefit my application as I would be able to see in my logs when this has happened.
|
|
|
|
|
I think posting of the source would be preferable. There are many other examples on this site of being relatively complex. This would be in keeping with what I believe is the intent of this site. ie as a resource for code sharing and learning, between developers.
Publishing tools of this type, without source should perhaps be better off in the freeware/shareware realm. For some reason I cannot get a feeling of cynicism out of my mind. I hope your not using this posting as a leadin to your companies wares. I hope I'm wrong here.
Great effort though, if a somewhat demanding on resources. Sharing your code may actually enable someone else to suggest alternate methods such that the program's efficiency can be improved and we can then all learn from it
|
|
|
|
|
Maybe just a core library that looks up and monitors the resources without the GUI interface?
That would be useful, I need to do this sometime in the future and the performance monitoring docs are pretty lean
|
|
|
|
|
I agree richard.this program is very copmlex and big program. I really want to see source.many of us is newbie so I thing that source code is very useful for us.
|
|
|
|
|
When I click on the link to download TaskStudio.zip, instead of a download dialog, my browser goes to a CodeProject page telling me that the file does not exist on CodeProject (I presume this is some sort of 404). TaskStudio looks interesting, and I'd love to look at it if the link gets fixed
|
|
|
|