/// <summary>
 /// Construct a WorkerAnalyzer.
 /// </summary>
 public ConcurrentPipProcessor(PackedExecutionExporter exporter)
 {
     m_exporter        = exporter;
     m_processingBlock = ActionBlockSlim.Create <ProcessFingerprintComputationEventData>(
         degreeOfParallelism: -1, // default
         processItemAction: ProcessFingerprintComputedCore);
 }
Esempio n. 2
0
            /// <summary>
            /// Construct a WorkerAnalyzer.
            /// </summary>
            public WorkerAnalyzer(PackedExecutionExporter exporter, string name, WorkerId workerId)
            {
                m_exporter = exporter;
                Name       = name;
                m_workerId = workerId;

                m_processingBlock = new ActionBlockSlim <ProcessFingerprintComputationEventData>(1, ProcessFingerprintComputedCore);
            }
 /// <summary>
 /// Construct a PackedExecutionExporter.
 /// </summary>
 public PackedExecutionExporterAnalyzer(AnalysisInput input, string outputDirectoryPath)
     : base(input)
 {
     m_exporter = new PackedExecutionExporter(input.CachedGraph.PipGraph, outputDirectoryPath);
 }