• 0

VB.NET application profiler/analyzer


Question

I'm looking for something that will tell me what parts of my program use how much system resources (cpu, memory, etc etc). I built a program and it uses quite a bit of RAM and I would like to figure out which part. Well I kinda know which part but I need the numbers.. How can this be done? Please help!

Link to comment
https://www.neowin.net/forum/topic/118809-vbnet-application-profileranalyzer/
Share on other sites

6 answers to this question

Recommended Posts

  • 0

You're using the .NET Framework. The reason why your software is using a lot of memory is how the Framework operates. Thiss issue is mute and you should not worry about "Plumbing" too much and focus more on building your application functionally.

This is the whole purpose of managed code.

I'm sure there is some class in the .NET Framework itself that can tell you where your memory is being allocated from. I suggest you look over all your source code and see where you can optimize your data typing and object creation to reduce the amount of RAM that you're worried about.

  • 0

I know because of the way the .net framework is built that applications take up lots of ram. My app at the moment takes up about 36 megs. I know where I can reduce this memory use, but I would like to know where else I can do it.. That's why I'm wondering if there is something like that out there..

Maybe it would be a good idea to develop something like that :)

  • 0
  Lomex said:
I know because of the way the .net framework is built that applications take up lots of ram. My app at the moment takes up about 36 megs. I know where I can reduce this memory use, but I would like to know where else I can do it.. That's why I'm wondering if there is something like that out there..

Maybe it would be a good idea to develop something like that :)

It's not theoretically using 36 megs of RAM, it's using a hell of a lot less, but the framework just for some reason, reserves additional memory for itself when there's actually alot of free memory in the system, but once your system begins to decrease in system memory, the framework will automatically return the reserved memory back to the OS, this has been discussed about a thousand times, the only work around is to use the SetProcessWorkSize API, which in a way just updates what's in the Task Manager, with how much RAM is actually being used, it's only a set of numbers, it's not worth it calling this API, it has it's disadvantages if you use it. :)

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.