1

I have created a Add-on (BHO) in IE and now running into performance issue. I am not able to check how much memory my Add-on is consuming.

Actually it is not sure that Add-on is culprit or something else is there in browser

  • Writing a BHO in .net is asking for problems, as for example what if the user had a different BHO loaded that needs a conflicting version of .net? – Ian Ringrose Feb 06 '15 at 14:34

1 Answers1

0

Attach to Internet Explorer process and debug normally with Visual Studio, then you can execute methods from the Watch or the Immediate window using the methods that you can find here:

How to get memory available or used in C#

Community
  • 1
  • 1
Ignacio Soler Garcia
  • 21,122
  • 31
  • 128
  • 207
  • I did that earlier but seems like confusing to me, as i think i am not getting correct value of actual memory usage!! I was following this link http://stackoverflow.com/questions/9404946/how-to-measure-memory-usage-with-c-sharp-as-we-can-do-in-java – Soumitra Bhatt Feb 05 '15 at 13:49
  • It should work. Why do you think you are not getting the correct value? – Ignacio Soler Garcia Feb 05 '15 at 16:59
  • most of counters are providing information of Total memory allocated but not providing actual memory used by my process. Also memory is different than showing in task manager – Soumitra Bhatt Feb 06 '15 at 07:56
  • To get the current memory usage you should use Process.WorkingSet property – Ignacio Soler Garcia Feb 06 '15 at 09:03