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); }
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"); }
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(); }