Search found 1025 matches

by Andreas Suurkuusk
Wed Jun 12, 2019 7:26 pm
Forum: Using .NET Memory Profiler
Topic: Garbage collection tracing
Replies: 3
Views: 80

Re: Garbage collection tracing

The current version of .NET Memory Profiler does not provide timing information for garbage collections. (Garbage collection timing and other performance data will be included in version 6.0 of the profiler). The count on the y-axis in the screenshot represents the number of garbage collections. In ...
by Andreas Suurkuusk
Tue Apr 23, 2019 5:58 am
Forum: Using .NET Memory Profiler
Topic: .NET Profiler API - Attaching to process
Replies: 3
Views: 553

Re: .NET Profiler API - Attaching to process

To retrieve analysis issues from a comparison you need to run the comparison analyzer. The analyzer is run by calling AnalyseComparison on the comparison. THis method returns an AnalysisResult which can be used when investigating issues. The code below shows how warning and error issues can be print...
by Andreas Suurkuusk
Mon Apr 15, 2019 7:35 am
Forum: Using .NET Memory Profiler
Topic: .NET Profiler API - Attaching to process
Replies: 3
Views: 553

Re: .NET Profiler API - Attaching to process

1. To attach to a running process using the API you need to specify the profiling type "Attach" and the id of the process to attach to. The code below shows how you can attach to a process using the API. static void Main(string[] args) { int processId = 21284; // Id of process ProfilerApplicationCor...
by Andreas Suurkuusk
Mon Mar 04, 2019 10:02 pm
Forum: General
Topic: Another 14 days for the trial
Replies: 53
Views: 143826

Re: Another 14 days for the trial

A registration key for a new trial has been sent to your e-mail.
by Andreas Suurkuusk
Fri Mar 01, 2019 6:02 pm
Forum: Using .NET Memory Profiler
Topic: .NET Profiler API + Run Tests under the Profiler
Replies: 13
Views: 959

Re: .NET Profiler API + Run Tests under the Profiler

Thank you very much and I really appreciate your effort. It's a bit embarrassing that I missed that Namespace could return null, I just assumed that it would return an empty string in case there's no namespace (the documentation clearly states that null will be returned). I have now fixed this issue...
by Andreas Suurkuusk
Fri Mar 01, 2019 3:54 pm
Forum: Using .NET Memory Profiler
Topic: .NET Profiler API + Run Tests under the Profiler
Replies: 13
Views: 959

Re: .NET Profiler API + Run Tests under the Profiler

That's really strange. Can your provide the call stack of the exception?
by Andreas Suurkuusk
Fri Mar 01, 2019 3:12 pm
Forum: Using .NET Memory Profiler
Topic: Failed to save session file - Operation is not valid due to the current state of the object
Replies: 1
Views: 443

Re: Failed to save session file - Operation is not valid due to the current state of the object

The "Item ... is not available" message is just an informational message and should not affect anything. The "Operation is not valid due to the current state of the object" error is a bug that we have fixed in the upcoming maintenance release of .NET Memory Profiler. It's a bit surprising that it oc...
by Andreas Suurkuusk
Fri Mar 01, 2019 2:52 pm
Forum: Using .NET Memory Profiler
Topic: .NET Profiler API + Run Tests under the Profiler
Replies: 13
Views: 959

Re: .NET Profiler API + Run Tests under the Profiler

I'm sorry for the delay. We have been working on the maintenance release of .NET Memory Profiler 5.6, with support for Visual Studio 2019. Now we have built a new version and we will probably release it in the beginning of the next week. Unfortunately, we have not been able to find a solution for th...
by Andreas Suurkuusk
Mon Feb 18, 2019 10:57 am
Forum: Using .NET Memory Profiler
Topic: .NET Profiler API + Run Tests under the Profiler
Replies: 13
Views: 959

Re: .NET Profiler API + Run Tests under the Profiler

Thanks for the information. At the moment I don't know how this can occur. We will investigate this further and see if we can come up with an explanation/fix. I will get back to this thread as soon as we have some more information.
by Andreas Suurkuusk
Mon Feb 18, 2019 9:34 am
Forum: Using .NET Memory Profiler
Topic: .NET Profiler API + Run Tests under the Profiler
Replies: 13
Views: 959

Re: .NET Profiler API + Run Tests under the Profiler

Your code looks fine. I don't understand how you can get a NullReferenceException when performing your assertions. We have investigated the API code and added a few more null-checks, but as far as I can see they should not be necessary. Anyway, can you test with the latest build of the profiler API?...
by Andreas Suurkuusk
Fri Feb 15, 2019 1:18 pm
Forum: Using .NET Memory Profiler
Topic: .NET Profiler API + Run Tests under the Profiler
Replies: 13
Views: 959

Re: .NET Profiler API + Run Tests under the Profiler

We're currently working on .NET Memory Profiler 6.0, but we are planning to release a maintenance release of version 5.6 within the next month. The release will mainly include support for Visual Studio 2019 and a few fixes. But, we will also look into the ""Run tests under profiler" feature and see ...
by Andreas Suurkuusk
Thu Feb 14, 2019 6:42 am
Forum: Using .NET Memory Profiler
Topic: .NET Profiler API + Run Tests under the Profiler
Replies: 13
Views: 959

Re: .NET Profiler API + Run Tests under the Profiler

Unfortunately, the “Run tests under Profiler” command is not always working correctly under later releases of Visual Studio 2017. This is due to an implementation change in the test runner in Visual Studio 2017, and we’re trying to find a solution for this. If we cannot find a solution, this feature...
by Andreas Suurkuusk
Mon Feb 04, 2019 7:40 am
Forum: Using .NET Memory Profiler
Topic: Understanding Total vs Held instances
Replies: 2
Views: 610

Re: Understanding Total vs Held instances

"Held instances" are instances that are prevented from being garbage collected by the item (instance, type, filter) you are investigating. So you can have a single instance that have many "held instances". You can read more about held instance in the online documentation at https://memprofiler.com/o...
by Andreas Suurkuusk
Wed Jan 16, 2019 6:08 pm
Forum: Using .NET Memory Profiler
Topic: Can't do the same operation when opened with .NET Memory Profiler.
Replies: 1
Views: 663

Re: Can't do the same operation when opened with .NET Memory Profiler.

Running an application under the profiler will increase the memory usage of the application and affect the performance. Other than that the application should function the same as when running without the profiler. What options are enabled when you profile the application? Did you enable the native ...
by Andreas Suurkuusk
Thu Dec 20, 2018 5:38 pm
Forum: Using .NET Memory Profiler
Topic: API: write dump/session to disk?
Replies: 4
Views: 1315

Re: API: write dump/session to disk?

Yes, it is normally recommended to collect more than one snapshot. This way you can more easily identify memory usage trends, e.g. see if there are types with additional instances in each new snapshot. With instance tracking enabled, you will also see the specific instances that are new in each snap...