Search found 1033 matches

by Andreas Suurkuusk
Wed Jun 23, 2021 6:49 am
Forum: Using .NET Memory Profiler
Topic: Console application Main function has a reference which prevent object to be GCed
Replies: 3
Views: 164

Re: Console application Main function has a reference which prevent object to be GCed

Your Main method contains global event handler registrations, anonymous functions, LINQ queries, and is an async method itself (with an accompanying state machine). A lot of data will be stored in local variables and it's hard to determine the lifetime of each variable. I don't think the runtime mak...
by Andreas Suurkuusk
Tue Jun 22, 2021 2:31 pm
Forum: Using .NET Memory Profiler
Topic: Error using NmpCore MSBuild Task
Replies: 2
Views: 49

Re: Error using NmpCore MSBuild Task

As you noticed, there's an error in the SciTech.NmpCore.Task.targets file included with with the SciTech.NmpCore.Task package (v5.7.21). It refers to the wrong directory for the NmpCore.exe file. We have now corrected this error and uploaded an updated package, v5.7.23. Can you upgrade to this versi...
by Andreas Suurkuusk
Wed Jun 16, 2021 9:16 pm
Forum: Using .NET Memory Profiler
Topic: Console application Main function has a reference which prevent object to be GCed
Replies: 3
Views: 164

Re: Console application Main function has a reference which prevent object to be GCed

I'm sorry for the late reply. It's hard to identify why an instance has not been GCed based on your description and the screenshot. To better help you with this I would need some more information. Is the FdcServerHostApp instance (#34,706), the instance you believe should be GCed? It's being kept al...
by Andreas Suurkuusk
Fri Apr 09, 2021 4:17 pm
Forum: General
Topic: Memory Profiling in a CI workflow - Virtual Machines
Replies: 1
Views: 1151

Re: Memory Profiling in a CI workflow - Virtual Machines

Hi, The internal .NET Memory Profiler API, the NmpCore task, and the NmpDataCollector are available as NuGet packages (SciTech.MemProfilerApi, SciTech.NmpCore.Task, SciTech.NmpDataCollector), but then snapshots can only be collected from within the profiled process. The external API, that allows you...
by Andreas Suurkuusk
Tue Jul 21, 2020 7:26 pm
Forum: Future Improvements
Topic: NmpCore dotnet core Linux
Replies: 1
Views: 3868

Re: NmpCore dotnet core Linux

Yes, we plan to add support for .NET Core applications running on Linux. In version 6.0, both .NET Memory Profiler and NmpCore will be running as .NET Core applications (or more likely .NET 5 applications). The profiler itself uses WPF so it will be be Windows only, but NmpCore will be cross platfor...
by Andreas Suurkuusk
Wed Jun 24, 2020 1:18 pm
Forum: Using .NET Memory Profiler
Topic: List of garbage collected instances
Replies: 4
Views: 4995

Re: List of garbage collected instances

I think we are meaning the same thing. I was also talking about getting a list of instances that existed in snapshot #1 and no longer exist in snapshot #2. The "Removed instances" value does represent the number of these instances. However, if you look at the type details, you will not get a list wi...
by Andreas Suurkuusk
Tue Jun 23, 2020 3:09 pm
Forum: Using .NET Memory Profiler
Topic: List of garbage collected instances
Replies: 4
Views: 4995

Re: List of garbage collected instances

It is currently not possible to get a list of garbage collected instances, but we're actually working on a feature that will make this possible. It's a four-way compare of snapshots, from up to two different sessions. With this comparison, full instance information will be available for two differen...
by Andreas Suurkuusk
Mon Mar 09, 2020 8:33 am
Forum: Using .NET Memory Profiler
Topic: Newbe: Is this a leak
Replies: 2
Views: 6108

Re: Newbe: Is this a leak

The instance graph shows that you have an XmlDocument that is kept alive through the X_Doc field of a Lokal_bon instance. As long as you intend to use the data in the XmlDocument again this is not a memory leak. And since the Local_bon instance is referenced be a method (Send_the_rest) it seems like...
by Andreas Suurkuusk
Wed Jun 12, 2019 7:26 pm
Forum: Using .NET Memory Profiler
Topic: Garbage collection tracing
Replies: 3
Views: 7999

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

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

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: 55
Views: 179469

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

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

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

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