Пример #1
0
		public void CloseMemoryGraph()
		{
			mMemoryGraph = null;
		}
Пример #2
0
        private void CreateInitialView()
        {
            string fname = mFilename;
            mFilter = "";
			// Now Create initial view
			PopulateLabelList();
			PopulateHW();
			PopulateGraphicalView();
            PopulateFromSnapshot(mLog, mLogSnap, mFilter, 0, false);
			mMenuItemSave.Enabled = true;		// Enable save button
			
			// Update window title - enable view menu / callstack and graphical view
			this.Text = "Mem Visualizer - " + fname;
			mMenuItemView.Enabled = true;
//			mMenuItemCallstack.Enabled = mLog.FindFieldName("StackTrace");
			mMenuItemGV.Enabled = (mLog.GetAllocatorList().Count == 0) ? false : true;
			mMenuItemMG.Enabled = (mLog.GetFormat() == "MetricsMemoryLog");
			if (mMemoryGraph != null)
			{
				mMemoryGraph.Close();
				mMemoryGraph = null;
			}
			if (mGraphicalView != null)
			{
				mGraphicalView.Close();
				mGraphicalView = null;
			}
		}
Пример #3
0
		private void mMenuItemMG_Click(object sender, System.EventArgs e)
		{
			if (mMemoryGraph == null)
			{
				mMemoryGraph = new MemoryGraph(this, mLog);
			}
			mMemoryGraph.Show();
		}