Пример #1
0
        public async Task <CallGraph <MethodDescriptor, LocationDescriptor> > Analyze()
        {
            //var analyzer = SolutionAnalyzer.CreateFromSolution(solutionFileName);
            await analyzer.AnalyzeAsync(AnalysisStrategyKind.ONDEMAND_ORLEANS);

            var callgraph = await analyzer.GenerateCallGraphAsync();

            return(callgraph);
        }
Пример #2
0
        private void InitializeAnalysis(string solutionPath)
        {
            Console.WriteLine("Analyzing solution...");

            this.Initialize();
            this.solutionPath = solutionPath;
            this.analyzer     = SolutionAnalyzer.CreateFromSolution(GrainClient.Instance, solutionPath);
            analyzer.AnalyzeAsync(strategyKind).Wait();

            OrleansController.SolutionManager = analyzer.SolutionManager;

            Console.WriteLine("Done");
        }
Пример #3
0
        public async Task AnalyzeSolutionAsync(string solutionPath, AnalysisStrategyKind strategyKind = StrategyKind)
        {
            {
                // Hack! Remove these lines
                //var solutionToTest = @"ConsoleApplication1\ConsoleApplication1.sln";
                var solutionToTest = @"coby\Coby.sln";
                solutionPath = Path.Combine(OrleansController.ROOT_DIR, solutionToTest);
            }

            OrleansController.solutionPath = solutionPath;
            OrleansController.analyzer     = SolutionAnalyzer.CreateFromSolution(GrainClient.Instance, solutionPath);
            await analyzer.AnalyzeAsync(strategyKind);

            // This call is to fill the documentsAssemblyName mapping
            await GetAllFilesAsync();
        }