-
August 30th, 2012, 04:43 AM
#1
Application to monitor the threads working set of a specific process
Hello,
I'm looking for an application (Windows OS) to monitor the threads working set of a specific process. I've seen some applications that show the CPU used by the several threads of a process but none that shows their memory usage...
I'm trying to find which thread of my application is requesting an excesive amount of memory.
Thanks.
-
August 30th, 2012, 11:55 AM
#2
Re: Application to monitor the threads working set of a specific process
-
August 30th, 2012, 02:25 PM
#3
Re: Application to monitor the threads working set of a specific process
Thank you, but that application doesn't show the memory usage of each thread of a process, it only shows CPU usage...
-
August 30th, 2012, 02:53 PM
#4
Re: Application to monitor the threads working set of a specific process
I'm sorry, I didn't fully read your request. I don't think you can find any application that shows memory usage for an individual threads. That requires that the memory management system registers thread info and I've never seen any proof of that. I.e. to acheive that I think you have to override new/delete and create your own statistics.
-
August 31st, 2012, 02:07 AM
#5
Re: Application to monitor the threads working set of a specific process
indeed, there's no "threads working set". By default, threads have their own stack but share the same heap and hence partecipate to the same "working set", which is a property of the process. BTW, depending on your expectation about the meaning of "memory usage/request", the working set could not necesserely coincide with the total memory "requested" by the process.
So, I agree with S_M_A; in order to have a "logical" view of the allocated memory of single threads you need to 1) define what's a memory request for you ( in c++, allocator invocations, new/malloc calls, OS memory management calls ... ) then 2) instrument the code accordingly, by placing callbacks or any other tracing means manually or via your preferred profiling framework.
-
August 31st, 2012, 06:43 AM
#6
Re: Application to monitor the threads working set of a specific process
Ok, thanks.
I think I'll try a profiler to analyse the memory usage (virtual memory, windows heap, COM, C Runtime allocations).
-
September 21st, 2012, 10:07 PM
#7
Re: Application to monitor the threads working set of a specific process
Originally Posted by S_M_A
I recommend this application but not in your case cause you want cpu usage
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|