private void InitializeDataProvider(ProgressMonitor progressMonitor) { var cperfContainer = new MemoryProfilingDataContainer(GetProfilerDataFileName()); DateTime profilerStartTime; cperfContainer.Load(progressMonitor, out profilerStartTime); if (profilerStartTime == DateTime.MinValue) { throw new Exception("Invalid session log"); } _profilingDataProvider = new MemoryProfilingDataProvider(cperfContainer, Path.Combine(SessionFolder, SessionConstants.ProcFileName)); _profilingDataProvider.Load(); }
/// <summary> /// Create a memory profiling data provider using the provided source data container and the target system /// information file name (but don't process the data at the moment). /// </summary> /// <param name="cperfContainer"> /// The input data for the data provider in the form of <see cref="MemoryProfilingDataContainer"/> which contains /// parsed data from a saved (already completed) memory profiling session. /// </param> /// <param name="sysInfoPath">The target system information file name.</param> public MemoryProfilingDataProvider(MemoryProfilingDataContainer cperfContainer, string sysInfoPath) { _cperfContainer = cperfContainer; _sysInfoPath = sysInfoPath; }