public static void Main(string[] args) { if (args.Length != 1) { Console.WriteLine("Please specify one input file"); return; } SeekableLogFileReader reader = null; try { reader = new SeekableLogFileReader(args [0]); } catch (IOException) { Console.Error.WriteLine("It was not possible to open the file {0}", args [0]); return; } Application.Init(); MainWindow win = new MainWindow(); win.Show(); win.HeapExplorer.Model = new HeapExplorerTreeModel(reader, win.HeapExplorer); win.HeapExplorer.Model.Initialize(); Application.Run(); }
public static void Main (string[] args) { if (args.Length != 1) { Console.WriteLine ("Please specify one input file"); return; } SeekableLogFileReader reader = null; try { reader = new SeekableLogFileReader (args [0]); } catch (IOException){ Console.Error.WriteLine ("It was not possible to open the file {0}", args [0]); return; } Application.Init (); MainWindow win = new MainWindow (); win.Show (); win.HeapExplorer.Model = new HeapExplorerTreeModel (reader, win.HeapExplorer); win.HeapExplorer.Model.Initialize (); Application.Run (); }
public HeapExplorerTreeModel(SeekableLogFileReader reader, HeapSnapshotExplorer explorer) { model = new TreeStore(new Type [] { typeof(INode) }); heapEventProcessor = new HeapEventProcessor(); this.reader = reader; this.explorer = explorer; rootNodes = new List <IRootNode> (); }