This commit is contained in:
@@ -96,37 +96,7 @@ namespace AyaNova.Biz
|
||||
_lastMMSnapshot = now;
|
||||
|
||||
|
||||
//TEST
|
||||
var profiler = MiniProfiler.StartNew("My Profiler Name");
|
||||
if (profiler != null)
|
||||
{
|
||||
var Options = profiler.Options;
|
||||
|
||||
var guids = Options.Storage.List(100);
|
||||
// var lastId = context.Request["last-id"];
|
||||
// if (!lastId.IsNullOrWhiteSpace() && Guid.TryParse(lastId, out var lastGuid))
|
||||
// {
|
||||
// guids = guids.TakeWhile(g => g != lastGuid);
|
||||
// }
|
||||
|
||||
var ministats = guids.Reverse()
|
||||
.Select(g => Options.Storage.Load(g))
|
||||
.Where(p => p != null)
|
||||
.Select(p => new
|
||||
{
|
||||
p.Id,
|
||||
p.Name,
|
||||
p.ClientTimings,
|
||||
p.Started,
|
||||
p.HasUserViewed,
|
||||
p.MachineName,
|
||||
p.User,
|
||||
p.DurationMilliseconds
|
||||
}).ToList();
|
||||
if(ministats.Count>0){
|
||||
var v=ministats.Count;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user