Search found 1033 matches

by Andreas Suurkuusk
Wed Aug 01, 2018 6:42 am
Forum: Using .NET Memory Profiler
Topic: Value types memory summary
Replies: 5
Views: 8605

Re: Value types memory summary

OK, now I understand this requirement better. I will write an example program that extracts this information from a session file. I will post it as a reply to this topic, but it may be a few days before I get the time to write the program.
by Andreas Suurkuusk
Thu Jul 26, 2018 3:51 pm
Forum: Using .NET Memory Profiler
Topic: Garbage Collection in Memory Profiler ?
Replies: 3
Views: 7903

Re: Garbage Collection in Memory Profiler ?

You can use the "Collect gen #0" command when you use the wizard, but I would not recommend it. Since the wizard is used to find memory leaks and help you identify instances that should have been GCed, it makes sense to allow the profiler to clean up as many instances as possible (to avoid false pos...
by Andreas Suurkuusk
Mon Jul 23, 2018 11:57 am
Forum: Using .NET Memory Profiler
Topic: Value types memory summary
Replies: 5
Views: 8605

Re: Value types memory summary

No, there's no functionality to present the number of bytes used by value types within other classes. The profiler will only present information about boxed value type instances. It would be fairly easy to retrieve this information from a snapshot, but I don't know how it would be presented in a goo...
by Andreas Suurkuusk
Tue Jun 12, 2018 11:52 am
Forum: Using .NET Memory Profiler
Topic: Memory Profiler API
Replies: 5
Views: 8349

Re: Memory Profiler API

It is not possible to retrieve the process id when starting the profiler as a separate process, but another option is to use the external profiler API to start the profiled process. Unfortunately, this API is the same API as the profiler itself uses and it may not be stable between versions. In part...
by Andreas Suurkuusk
Mon Jun 11, 2018 12:31 pm
Forum: Using .NET Memory Profiler
Topic: Memory Profiler API
Replies: 5
Views: 8349

Re: Memory Profiler API

What process id are you looking for? The API is used within the profiled process, so the process id of this process can be retrieved using Process.GetCurrentProcess().Id. Are you profiling multiple processes? There are some minor differences between NmpCore and NetMemProfiler(Console),e..g. WPF clea...
by Andreas Suurkuusk
Thu Jun 07, 2018 8:36 pm
Forum: Using .NET Memory Profiler
Topic: Memory Profiler API
Replies: 5
Views: 8349

Re: Memory Profiler API

Currently the .NET Memory Profiler API is not available when you attach to a process (the MemProfiler.IsProfiling property will return false as you noticed). When attaching to a process, the profiler will not get notifications about allocations and can therefore not provide information about the nu...
by Andreas Suurkuusk
Tue Jun 05, 2018 2:16 pm
Forum: Using .NET Memory Profiler
Topic: Garbage Collection in Memory Profiler ?
Replies: 3
Views: 7903

Re: Garbage Collection in Memory Profiler ?

Yes, when you collect a snapshot, the profiler forces the .NET runtime to cleanup as much memory as possible (by performing multiple garbage collections, allowing finalizers to run, and trigger WPF cleanup when profiling a WPF application). This avoids presenting instances that are eligible for garb...
by Andreas Suurkuusk
Tue Jun 05, 2018 1:09 pm
Forum: General
Topic: Another 14 days for the trial
Replies: 55
Views: 179472

Re: Another 14 days for the trial

A registration key for a new trial has been sent to your e-mail.
by Andreas Suurkuusk
Thu May 17, 2018 1:23 pm
Forum: Using .NET Memory Profiler
Topic: Live Bytes vs Total Bytes in Graph
Replies: 2
Views: 7684

Re: Live Bytes vs Total Bytes in Graph

It's not a bug. It is caused by an optimization in the profiler and the way live bytes data is presented in the real-time view. Collecting information about live instances is very time-consuming. The profiler has to analyse the full managed heap in order to determine which instances are actually rea...
by Andreas Suurkuusk
Mon May 07, 2018 2:29 pm
Forum: General
Topic: Memory Profiler 5.6 and 5.5 Pro license
Replies: 1
Views: 24801

Re: Memory Profiler 5.6 and 5.5 Pro license

If your support and upgrades subscription has not expired, you will get a free upgrade to .NET Memory Profiler 5.6 Professional. The registration name and key from your v5.5 license will just work. If the subscription has expired, you need to purchase a renewal or an upgrade (in your case "Upgrade f...
by Andreas Suurkuusk
Thu Apr 12, 2018 2:46 pm
Forum: Using .NET Memory Profiler
Topic: Native memory 'Other Data'
Replies: 2
Views: 7276

Re: Native memory 'Other Data'

The native memory information collected by the resource tracker is presented as "Identified resources" in the "Native memory" view. Do you see any resources listed there? IdentifiedResources.png The resource tracker is not activated in the profiled process until the .NET runtime is loaded into the p...
by Andreas Suurkuusk
Wed Apr 11, 2018 1:17 pm
Forum: General
Topic: Performance profiler
Replies: 3
Views: 25756

Re: Performance profiler

We're working on it. We have considered to implement a performance profiler for many years, and now we have finally started. A performance profiler is planned to be one of the major new features in .NET Memory Profiler 6.0 (which will probably require a name change of the profiler).
by Andreas Suurkuusk
Wed Apr 11, 2018 1:13 pm
Forum: Using .NET Memory Profiler
Topic: NmpCore Tool
Replies: 4
Views: 8350

Re: NmpCore Tool

Yes, I would recommend that you use NmpCore to attach to the process and create a session file, rather that creating memory dumps and import them. If you only collect a single snapshot from the session, it might be a good idea to use "inspection-only" attach. This performs a non-invasive attach, i.e...
by Andreas Suurkuusk
Wed Apr 11, 2018 1:00 pm
Forum: Using .NET Memory Profiler
Topic: No .Net runtime in dump file?
Replies: 4
Views: 8348

Re: No .Net runtime in dump file?

It's strange that you don't have the "mscordaccore.dll" on your system. It should be part of the Silverlight installation. Maybe you don't have a full installation of Silverlight? Maybe "C:\Program Files\Microsoft Silverlight\5.1.50907.0" is just a left-over directory? If you get the file from the c...
by Andreas Suurkuusk
Tue Apr 10, 2018 1:46 pm
Forum: Using .NET Memory Profiler
Topic: NmpCore Tool
Replies: 4
Views: 8350

Re: NmpCore Tool

Instead of importing a memory dump using NmpCore, our intention is that you should use inspection only attach directly on the process you want to investigate. If you have a memory dump, then it is normally better to import it using the full memory profiler. The /i argument is actually not officially...