Improved object search in dotMemory
When you explore a memory snapshot, it’s never easy to find the object you need. A typical application operates millions of objects, which means a memory profiler must offer adequate searching capabilities. Before dotMemory 2017.3, object set views provided only basic string search. Now, you can make your search more efficient by creating complex search patterns based on CamelHumps and special symbols.
As usual, the asterisk (*) wildcard means literally “anything” and can be used in any part of your search pattern. For example, sys.*.data may return
If you want to search only among namespaces, you can do this by adding a period (.) at the end of the pattern. For example, sys.*.data. will return
System.Windows.Data.Binding but not the
Search for arrays
If you want to only see arrays in search results, simply use square brackets, . To find arrays of a specific dimension, use commas inside: for example, str[,,] will return
String[,,]. If you omit the closing bracket, search results will contain arrays with the specified dimension and all higher ones: str[,, may return
String[,,] as well as
The Instances view has a bonus: here you can search by array size or size range.
You can exclude arrays from search results by adding !a anywhere in the pattern.
Search for types with generic type arguments
To only search for types with generic type arguments, use angle brackets <>. Similar to array search, commas inside the brackets define the number of arguments.
If you add !g anywhere in the pattern, all generic type arguments will be excluded from the search scope.
Download ReSharper Ultimate to get the updated dotMemory and try the new object search yourself!
Subscribe to Blog updates
Thanks, we've got you!
Another Look into the Future with Rider’s Predictive Debugger
In the 2023.2 release cycle, we’ve introduced the Predictive Debugger in ReSharper, which gives you predictions about code paths and variables beyond the current execution pointer. We’ve written extensively about its advantages compared to alternative debugging strategies like thorough thinking, log…
Visualize Entity Framework Relationships and Additional Query Analysis in ReSharper 2023.3
A lot of teams are using Entity Framework or EF Core to work with their database. As an Object-Relational Mapper (ORM), it bridges objects in code to a relational database model, so that as a developer you don’t have to worry too much about the actual database. We all know: that’s not entirely tr…
Automatically Analyze ASP.NET Core Performance With Dynamic Program Analysis
Slow web pages may make your users or customers abandon your web application, even before they’ve had a proper look at it. You’ve likely also been frustrated working with a web application that is slow to load. The good news is that the latest versions of ReSharper and JetBrains Rider’s Dynamic P…
OSS Power-Ups: MassTransit – Webinar Recording
The recording of our webinar, OSS Power-Ups: MassTransit, with Chris Patterson, is available. This was the thirteenth episode of our OSS Power-Ups series, where we put a spotlight on open-source .NET projects. Subscribe to our community newsletter to receive notifications about future webinars.…