perfapps/memspyui/ui/avkon/src/MemSpyViewHeapTracking.cpp
changeset 52 36d60d12b4af
parent 51 b048e15729d6
child 53 819e59dfc032
--- a/perfapps/memspyui/ui/avkon/src/MemSpyViewHeapTracking.cpp	Fri Sep 03 17:11:21 2010 +0300
+++ b/perfapps/memspyui/ui/avkon/src/MemSpyViewHeapTracking.cpp	Fri Sep 17 14:22:55 2010 +0300
@@ -43,12 +43,10 @@
 :   CMemSpyViewBase( aSession, aObserver ),    
     iState( EMemSpyViewHeapTrackingStateIdle )
     {
-	/*
-    if ( iEngine.HelperSysMemTracker().IsActive() )
-        {
-        iState = EMemSpyViewHeapTrackingStateTimerOn;
-        }
-    */    
+	if( iMemSpySession.IsSwmtRunningL() )
+		{
+		iState = EMemSpyViewHeapTrackingStateTimerOn;
+		}	   
     }
 
 
@@ -403,8 +401,8 @@
             {
             aConfig.iMode = aMode;
             aConfig.iEnabledCategories = TMemSpyEngineHelperSysMemTrackerConfig::EMemSpyEngineSysMemTrackerCategoryUserHeap |
-                                         TMemSpyEngineHelperSysMemTrackerConfig::EMemSpyEngineSysMemTrackerCategoryUserStacks |
-                                         TMemSpyEngineHelperSysMemTrackerConfig::EMemSpyEngineSysMemTrackerCategoryGlobalData |
+                                         //TMemSpyEngineHelperSysMemTrackerConfig::EMemSpyEngineSysMemTrackerCategoryUserStacks |
+                                         //TMemSpyEngineHelperSysMemTrackerConfig::EMemSpyEngineSysMemTrackerCategoryGlobalData |
                                          TMemSpyEngineHelperSysMemTrackerConfig::EMemSpyEngineSysMemTrackerCategorySystemMemory;
             aConfig.iDumpData = EFalse;
             break;