private void IndexPerfData(
PerfData data,
Dictionary<string,Dictionary<string,double>> table,
string primaryKey,
params string[] secondaryKeys)
{
Dictionary<string,double> results = null;
if (!table.TryGetValue(primaryKey, out results))
{
table[primaryKey] = results = new Dictionary<string,double>();
}
string secondaryKey = Utils.Format("{0}/{1}/{2}", secondaryKeys);
results[secondaryKey] = data.ElaspsedTime;
}