##// END OF EJS Templates
working on diagnostics
working on diagnostics

File last commit:

r194:d45bdf510514 v2
r194:d45bdf510514 v2
Show More
Program.cs
48 lines | 1.3 KiB | text/x-csharp | CSharpLexer
cin
improved tracing...
r93 using System;
using Implab;
cin
Added support for 'await' operator to promises
r151 using System.Threading.Tasks;
cin
fixed DFA optimization, JSON is fully functional
r183 using Implab.Formats.JSON;
using System.IO;
using System.Text.Json;
cin
working on diagnostics
r194 using System.Diagnostics;
using Implab.Parallels;
using System.Threading;
cin
improved tracing...
r93
namespace MonoPlay {
class MainClass {
cin
RC: cancellation support for promises + tests
r145
cin
improved tracing...
r93 public static void Main(string[] args) {
cin
working on diagnostics
r194 var pool = new WorkerPool(10);
cin
JSONWriter improvements
r150
cin
working on diagnostics
r194 var listerner = new ConsoleTraceListener();
listerner.TraceOutputOptions = TraceOptions.LogicalOperationStack;
Trace.Listeners.Add(listerner);
Trace.CorrelationManager.StartLogicalOperation("Main");
cin
improved tracing...
r93
cin
working on diagnostics
r194 var d = pool.Invoke(() => {
Trace.CorrelationManager.StartLogicalOperation("Worker");
Thread.Sleep(100);
Trace.TraceInformation("worker done");
Trace.CorrelationManager.StopLogicalOperation();
});
cin
shared locks + tests
r136
cin
working on diagnostics
r194 ThreadPool.QueueUserWorkItem((o) => {
Trace.CorrelationManager.StartLogicalOperation("Thread");
Thread.Sleep(100);
Trace.TraceInformation("thread done");
Trace.CorrelationManager.StopLogicalOperation();
});
cin
JSONWriter improvements
r150
cin
working on diagnostics
r194 Trace.TraceInformation("main done");
Trace.CorrelationManager.StopLogicalOperation();
d.Join();
cin
fixed DFA optimization, JSON is fully functional
r183
cin
RC: cancellation support for promises + tests
r145 }
cin
shared locks + tests
r136
cin
improved tracing...
r93 }
}