This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[2015-11-18 18:39:57.582 GMT 9 INFO 100000 Runtime.Scheduler.WorkerPoolThread/0 127.0.0.1:22222] Starting AsyncAgent Runtime.Scheduler.WorkerPoolThread/0 on managed thread 9 | |
[2015-11-18 18:39:57.582 GMT 13 INFO 100000 Runtime.Scheduler.WorkerPoolThread/System.5 127.0.0.1:22222] Starting AsyncAgent Runtime.Scheduler.WorkerPoolThread/System.5 on managed thread 13 | |
[2015-11-18 18:39:57.583 GMT 11 INFO 100000 Runtime.Scheduler.WorkerPoolThread/2 127.0.0.1:22222] Starting AsyncAgent Runtime.Scheduler.WorkerPoolThread/2 on managed thread 11 | |
[2015-11-18 18:39:57.583 GMT 10 INFO 100000 Runtime.Scheduler.WorkerPoolThread/1 127.0.0.1:22222] Starting AsyncAgent Runtime.Scheduler.WorkerPoolThread/1 on managed thread 10 | |
[2015-11-18 18:39:57.583 GMT 12 INFO 100000 Runtime.Scheduler.WorkerPoolThread/3 127.0.0.1:22222] Starting AsyncAgent Runtime.Scheduler.WorkerPoolThread/3 on managed thread 12 | |
[2015-11-18 18:39:57.585 GMT 14 INFO 100000 Runtime.Messaging.IncomingMessageAcceptor 127 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
internal static Task<T> ConvertTaskToTcs<T>(Task<T> task, TaskCompletionSource<object> resolver) | |
{ | |
if (task == null) | |
{ | |
resolver.TrySetResult(default(T)); | |
return; | |
} | |
if (task.Status == TaskStatus.RanToCompletion) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using BenchmarkDotNet.Attributes; | |
using BenchmarkDotNet.Configs; | |
using BenchmarkDotNet.Jobs; | |
using BenchmarkDotNet.Running; | |
namespace Benchmark | |
{ | |
internal static class Program |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Concurrent; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Reflection; | |
using System.Threading; | |
using BenchmarkDotNet.Attributes; | |
using BenchmarkDotNet.Configs; | |
using BenchmarkDotNet.Jobs; | |
using BenchmarkDotNet.Running; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var memberNameStart = parent.IndexOf("&", StringComparison.InvariantCulture); | |
if (memberNameStart != -1) | |
{ | |
var ownerAxis = (_report.Axes as ReportAxes).GetAxisByMember(parent); | |
var parents = parent.Substring(memberNameStart) | |
.Replace("&", string.Empty) | |
.Replace(".", string.Empty) | |
.Replace("[", string.Empty) | |
.Replace("]", string.Empty); | |
parent = ownerAxis.Dimension.HierarchyName + "."; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.Linq; | |
using System.Reflection; | |
using System.Text; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using Orleans.Runtime.Scheduler; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Concurrent; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.Text; | |
using System.Threading; | |
using System.Threading.Tasks; | |
namespace Orleans.Runtime.Scheduler |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Runtime.Serialization.Formatters.Binary; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace ConsoleApp3 | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://stackoverflow.com/questions/46467275/weird-stack-trace-growth-with-async-await-and-taskcompletionsource | |
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Reflection; | |
using System.Reflection.Emit; | |
using System.Runtime.CompilerServices; | |
using System.Runtime.ExceptionServices; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
. |
OlderNewer