|| | |||Browse by category|
TotalView and MemoryScape can be used together providing you have the appropriate licenses for the products and the number of processes you are debugging. TotalView Enterprise and Team licenses include both the integrated as well as stand-alone MemoryScape.
1. Use MemoryScape within a TotalView debugging session.
The TotalView Debug menu provides an Open MemoryScape option which will open up MemoryScape on the program that you are debugging. Both interfaces will be open and either one can be used to start or stop the target program.
An advantage of this usage mode is that MemoryScape will coordinate with TotalView to provide pointer annotation on all pointers that point into the heap. This feature will tell you if the pointer you are examining is pointing at a valid memory allocation, is dangling (pointing at an allocation that has been freed), or doesn't point at the heap at all.
Memory debugging should be enabled on the target program when it is started to ensure that MemoryScape will be able to build a complete and valid heap map, necessary for performing analysis.
2. Use TotalView within a MemoryScape debugging session.
If you start out debugging a program with MemoryScape and decide that you need to look more closely at your process, you can bring up TotalView by clicking on the bug icon on the toolbar. This will start up TotalView focused on the program that you were debugging with MemoryScape.
This usage mode provides the same advantage described in mode 1: MemoryScape will coordinate with TotalView to provide pointer annotation on all pointers that point into the heap.
You must have both MemoryScape and TotalView licenses for this mode.
I'd like to point out that if you really want to explore the behavior of your program you can actually run a debugging session which simultaneously uses TotalView, MemoryScape, and ReplayEngine to provide a powerful and complete view into your program, its heap memory allocation behavior and its execution history.