public StackViewerController(ICallTreeDataProvider dataProvider) { if (dataProvider == null) { ThrowHelper.ThrowArgumentNullException(nameof(dataProvider)); } this.dataProvider = dataProvider; }
public StackViewerController(ICallTreeDataProviderFactory dataProviderFactory) { if (dataProviderFactory == null) { ThrowHelper.ThrowArgumentNullException(nameof(dataProviderFactory)); } this.dataProvider = dataProviderFactory.Get(); }
public void InitializeDataProvider() { if (string.Equals(this.StackType, "exceptions", StringComparison.OrdinalIgnoreCase)) { this.dataProvider = new CallTreeDataProvider(this.TraceLog, this.FilterParams, this.reader, new ExceptionTraceDataPlugin()); } if (string.Equals(this.StackType, "cpu", StringComparison.OrdinalIgnoreCase)) { this.dataProvider = new CallTreeDataProvider(this.TraceLog, this.FilterParams, this.reader, new SampleProfileTraceDataPlugin()); } if (string.Equals(this.StackType, "memory", StringComparison.OrdinalIgnoreCase)) { this.dataProvider = new CallTreeDataProvider(this.TraceLog, this.FilterParams, this.reader, new HeapAllocationTraceDataPlugin()); } if (string.Equals(this.StackType, "contention", StringComparison.OrdinalIgnoreCase)) { this.dataProvider = new CallTreeDataProvider(this.TraceLog, this.FilterParams, this.reader, new ContentionTraceDataPlugin()); } }