Search found 1006 matches

by Andreas Suurkuusk
Wed Aug 22, 2018 10:53 am
Forum: General
Topic: I cannot install the memory profiler
Replies: 1
Views: 1554

Re: I cannot install the memory profiler

The error code 0x80070652 is defined as ERROR_INSTALL_ALREADY_RUNNING, which indicate that your failed installation is caused by another installation somehow. I recommend that you restart your computer and check that you don't have any pending Windows Update installs, or some other pending installs....
by Andreas Suurkuusk
Thu Aug 09, 2018 2:30 pm
Forum: Using .NET Memory Profiler
Topic: Help on duplicate instances
Replies: 1
Views: 211

Re: Help on duplicate instances

Two instances are duplicates if the data reachable from each instance is identical. For double arrays, this means that they are the same length and contain exactly the sames values. If you create two arrays using the code below, then you will have two separate double array instances, but they will c...
by Andreas Suurkuusk
Mon Aug 06, 2018 3:02 pm
Forum: Using .NET Memory Profiler
Topic: Value types memory summary
Replies: 5
Views: 317

Re: Value types memory summary

Now I have written an example that extracts value type usage information from a session. It was a little bit more complicated than I expected. You will find the sample code below. To compile the code, you need to add a reference to the "SciTech.NetMemProfiler.Core" assembly, which you will find in t...
by Andreas Suurkuusk
Wed Aug 01, 2018 6:42 am
Forum: Using .NET Memory Profiler
Topic: Value types memory summary
Replies: 5
Views: 317

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: 394

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: 317

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: 415

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: 415

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: 415

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: 394

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: 50
Views: 80427

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: 487

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: 4242

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: 649

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: 4481

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