コード例 #1
0
        private ProfilerSession()
        {
            _settings   = new ProfilerSettings();
            _assertions = new List <Func <IResult, bool> >();
            _executor   = new ThreadSessionHandler();

            _sessionPipeline = new TaskExecutionChain();
            _sessionPipeline.SetNext(new ElapsedTimeSessionHandler());

            _processingPipeline = new ProcessingPipeline();
        }
コード例 #2
0
        /// <summary>
        /// Sets the amount of threads that the profiling sessions should run in.
        /// All iterations are run on every thread.
        /// </summary>
        /// <param name="thredCount">The amount of threads that the task is run on</param>
        /// <returns>The current profiling session</returns>
        public ProfilerSession SetThreads(int thredCount)
        {
            _executor = new MultyThreadSessionHandler(thredCount);

            return(this);
        }