4 instantiations of ProgressEvent
Microsoft.ML.Core (4)
Data\ProgressReporter.cs (4)
395_pendingEvents.Enqueue(new ProgressEvent(newInfo.Index, newInfo.Name, newInfo.StartTime, ProgressEvent.EventKind.Start)); 413_pendingEvents.Enqueue(new ProgressEvent(info.Index, info.Name, info.StartTime, ProgressEvent.EventKind.Stop)); 419_pendingEvents.Enqueue(new ProgressEvent(info.Index, info.Name, info.StartTime, entry)); 463list.Add(new ProgressEvent(info.Index, info.Name, info.StartTime, entry));
25 references to ProgressEvent
Microsoft.ML.Core (25)
Data\ProgressReporter.cs (15)
95_tracker.Log(this, ProgressEvent.EventKind.Progress, entry); 100_tracker.Log(this, ProgressEvent.EventKind.Start, null); 105_tracker.Log(this, ProgressEvent.EventKind.Stop, null); 298private readonly ConcurrentQueue<ProgressEvent> _pendingEvents; 369_pendingEvents = new ConcurrentQueue<ProgressEvent>(); 374public void Log(ProgressChannel source, ProgressEvent.EventKind kind, ProgressEntry entry) 379if (kind == ProgressEvent.EventKind.Start) 395_pendingEvents.Enqueue(new ProgressEvent(newInfo.Index, newInfo.Name, newInfo.StartTime, ProgressEvent.EventKind.Start)); 410case ProgressEvent.EventKind.Stop: 413_pendingEvents.Enqueue(new ProgressEvent(info.Index, info.Name, info.StartTime, ProgressEvent.EventKind.Stop)); 417_ectx.Assert(kind == ProgressEvent.EventKind.Progress); 435public List<ProgressEvent> GetAllProgress() 437var list = new List<ProgressEvent>(); 439ProgressEvent cur; 474_pendingEvents.TryDequeue(out var res);
Environment\ConsoleEnvironment.cs (10)
190x => x.Kind != ProgressReporting.ProgressEvent.EventKind.Progress || x.ProgressEntry.IsCheckpoint); 195foreach (var ev in checkpoints) 205case ProgressReporting.ProgressEvent.EventKind.Start: 208case ProgressReporting.ProgressEvent.EventKind.Stop: 211case ProgressReporting.ProgressEvent.EventKind.Progress: 228foreach (var ev in entries) 230Contracts.Assert(ev.Kind == ProgressReporting.ProgressEvent.EventKind.Progress); 250private static void PrintOperationStart(TextWriter writer, ProgressReporting.ProgressEvent ev) 255private static void PrintOperationStop(TextWriter writer, ProgressReporting.ProgressEvent ev) 260private void PrintProgressLine(TextWriter writer, ProgressReporting.ProgressEvent ev)