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.

Moderator: SciTech Software

MemProfiler.IsProfiling returning false when using Attach

Postby 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.

Posts: 6
Joined: Tue Sep 09, 2008 11:00 pm
Location: St. Louis, MO - USA

Postby 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
Andreas Suurkuusk
Posts: 993
Joined: Wed Mar 02, 2005 7:53 pm
Location: Sweden

Return to Future Improvements

Who is online

Users browsing this forum: No registered users and 2 guests

SciTech Software logo

© Copyright 2001-2016. SciTech Software AB
All rights reserved.

SciTech Software AB
Kartvägen 21
SE-175 46 Järfälla


Telephone: +46-706868081