Пример #1
0
        public static ScopeMethodAnalysisResult AnalyzeMethodWithBagOColumnsAnalysis(IMetadataHost host, IAssembly assembly, IEnumerable <IAssembly> refAssemblies, IMethodDefinition method)
        {
            var sw = new Stopwatch();

            sw.Start();

            var me = new ScopeAnalysis(host, assembly, null, refAssemblies, null);

            me.nonAnalysisOverhead = TimeSpan.Zero;

            var r = me.AnalyzeMethod(method);

            sw.Stop();
            //r.ElapsedTime = sw.Elapsed-me.nonAnalysisOverhead;
            r.ElapsedTime = sw.Elapsed;

            return(r);
        }