This commit is contained in:
2020-05-25 23:01:27 +00:00
parent 764f891ff4
commit fe7a2790aa
3 changed files with 12 additions and 12 deletions

View File

@@ -215,14 +215,14 @@ from generate_series(1, 525600) s(i)
var Gen2 = GC.CollectionCount(2);//integer
var CPU = _cpu;// double precision
System.Diagnostics.Debug.WriteLine($"MM Snapshot, cpu: {CPU}");
//System.Diagnostics.Debug.WriteLine($"MM Snapshot, cpu: {CPU}");
using (AyContext ct = ServiceProviderProvider.DBContext)
{
//write to db
MetricMM mm = new MetricMM(Allocated, WorkingSet, PrivateBytes, Gen0, Gen1, Gen2, CPU);
ct.MetricMM.Add(mm);
ct.SaveChanges();
System.Diagnostics.Debug.WriteLine("MM SAVED");
//System.Diagnostics.Debug.WriteLine("MM SAVED");
}

View File

@@ -61,13 +61,13 @@ namespace AyaNova.Generator
}
else
{
System.Diagnostics.Debug.WriteLine($"### GENERATE calling JobsBiz.ProcessJobs");
//System.Diagnostics.Debug.WriteLine($"### GENERATE calling JobsBiz.ProcessJobs");
//Capture metrics
CoreJobMetricsSnapshot.DoJob();
await JobsBiz.ProcessJobsAsync();
//Capture metrics again, (calling repeatedly won't increase metrics but will ensure it doesn't miss frequency of capturing)
CoreJobMetricsSnapshot.DoJob();
System.Diagnostics.Debug.WriteLine($"### GENERATE BACK FROM calling JobsBiz.ProcessJobs");
//System.Diagnostics.Debug.WriteLine($"### GENERATE BACK FROM calling JobsBiz.ProcessJobs");
}
}
catch (Exception ex)