Reputation: 1695
I am currently looking into a performance and memory issue (crash) while performing printing huge documents from my application. I am new to profiling and first time dealing with memory issues.
What I tried so far:
I tried using the Visual studio built in Performance analysis but it was so slow and processing for ever.
Is there a method in C# that I can use that tells me how big the object is like that returns me this objects is xMB or any debugger tools that will convey these details.
While searching I was referred to few tools like Ants Profiler but before taking that path I was wondering is there any built in functionality in C# or VS debugger that can used for my need.
Upvotes: 0
Views: 1870
Reputation: 246
I hope this post isn't too late. One of the new features introduced in Visual Studio 2013 is .NET managed memory analysis from dump file. You can find the post about debugger improvements here http://msdn.microsoft.com/en-us/library/vstudio/01xdt7cs%28v=vs.120%29.aspx#BKMK__NET_Framework_Memory_Analysis_with_Dump_Files
Upvotes: 0
Reputation: 2597
As advised you might have to use a profiling tool to get the details.
I would personally favorite windbg, but might be too much if its a huge project with dependencies.
Here is a project that could help find your undisposed object: Finding-Undisposed-Objects. Could help you to get closer to identify the problem.
Upvotes: 1
Reputation: 1690
I personally like dotTrace from JetBrains. Provides memory and time elapsed type profiling of .NET code. They have a 10-day trial if you want to give it a whirl. You can see it here: http://www.jetbrains.com/profiler/
Upvotes: 1