private static void OnUpdateCallback2(object sender, ProfilingDataUpdateEventArgs <SamplingCallTree> eventArgs) { // Console.Clear(); foreach (SamplingCallTree callTree in eventArgs.CallTrees) { Console.WriteLine(callTree.ToString(null)); Console.WriteLine(); } }
private void OnUpdateCallback(object sender, ProfilingDataUpdateEventArgs <SamplingCallTree> eventArgs) { // if (Interlocked.CompareExchange(ref _enter, 0, 1) == 1) { lock (_lockObject) { CallTreeConvertor treeConvertor = new SamplingCallTreeConvertor(eventArgs.CallTrees); UpdateUI(treeConvertor); } } }
private static void OnUpdateCallback(object sender, ProfilingDataUpdateEventArgs <TracingCallTree> eventArgs) { // Console.Clear(); foreach (TracingCallTree callTree in eventArgs.CallTrees) { ulong totalCycleTime = callTree.TotalCycleTime(); ulong totalUserKernelTime = callTree.TotalUserKernelTime(); string callTreeString = callTree.ToString((sb, cte) => { decimal cycleTime = totalCycleTime == 0 ? 0 : cte.CycleTime * (decimal) totalUserKernelTime / totalCycleTime / 1e7M; sb.AppendFormat(",Tact={0:0.00000}s", cycleTime); }); Console.WriteLine(callTreeString); Console.WriteLine(); } }
private void UpdateCallback(object sender, ProfilingDataUpdateEventArgs <StubCallTree> profilingDataUpdateEventArgs) { _profilingDataUpdateEventArgs = profilingDataUpdateEventArgs; _updateCallbackFinishedSync.Set(); }