예제 #1
0
        public void populateValues(RunMetrics result)
        {
            var bytes   = metricsDb.Find(runKey(result.run()));
            var doubles = new double[bytes.Length / 8];

            Buffer.BlockCopy(bytes, 0, doubles, 0, bytes.Length);
            var runMetrics = new Dictionary <string, double>();

            eachIt(metricNames_, (i, name) => runMetrics[name] = doubles[i]);

            var paramBytes    = parametersDb.Find(runKey(result.run()));
            var strings       = (List <string>)deserialize(paramBytes);
            var runParameters = new Dictionary <string, string>();

            eachIt(parameterNames_, (i, name) => runParameters[name] = strings[i]);
            result.setValues(runMetrics, runParameters);
        }
예제 #2
0
 public void clearCache(RunMetrics metrics)
 {
     cache.remove(metrics.run());
 }