Not sure which Stack Trace you want to capture. Do you mean a Stack Trace that shows WHERE these objects got allocated? If that is the case then you have to go a different route. The Memory Dump feature gives you an overview of which objects you have on your Heap. The Full Memory dump also shows you object references and allows you to figure out which object is holding on to which other object.
if you want to see WHERE an object got allocated you need to leverage our "Memory Sensor Rules" where you can explicitly define rules for Dynatrace to track certain classes and their object instantiations including the method that allocated them.
If you want to learn more check out these two assets:
* YouTube Tutorial: https://www.youtube.com/watch?v=SWy83EW_xhk&index=...