Exemplo n.º 1
0
        public ActionResult Diff(string machine, string left, string right)
        {
            var repository = repositoryWatcher.Get();
            var log        = logWatcher.Get();

            var leftFile  = repository.GetRun(machine, left);
            var rightFile = repository.GetRun(machine, right);

            return(View(new BenchmarkDiff(leftFile, rightFile, log)));
        }
 public object GetService(Type serviceType)
 {
     if (serviceType == typeof(BenchmarksController))
     {
         return(new BenchmarksController(repositoryWatcher.Get(), logWatcher.Get()));
     }
     return(null);
 }
Exemplo n.º 3
0
        // GET: /Benchmarks/
        // or
        // GET: /Benchmarks/Machines
        public ActionResult Machines()
        {
            var machines = repositoryWatcher.Get().RunsByMachine.Select(g => g.Key).ToList();

            return(View(machines));
        }