MemProfiler.IsProfiling returning false when using Attach

Use this forum to discuss and/or suggest future improvements of .NET Memory Profiler and to report bugs.
Post Reply
Posts: 6
Joined: Tue Sep 09, 2008 11:00 pm

MemProfiler.IsProfiling returning false when using Attach

Post by bralston7 » Tue Nov 11, 2008 7:36 pm

Just like the subject says, MemProfiler.IsProfiling is returning false when I use "Attach to Process". It works fine when starting the profiled application from visual studio using Profiler -> Start Memory Profiler.


Andreas Suurkuusk
Posts: 1030
Joined: Wed Mar 02, 2005 7:53 pm

Post by Andreas Suurkuusk » Wed Nov 12, 2008 7:32 pm

When the profiler attaches to a process, the profiler will only passively analyse the memory usage of the process. The profiler will not affect the attached process in any way, and therefore the profiled process is not aware of being profiled. In order to use the profiler API, you need to start the process from the profiler.
Best regards,

Andreas Suurkuusk
SciTech Software AB

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests