Ejemplo n.º 1
0
        /// <inheritdoc />
        public override void Update()
        {
            var stats = ProfilingTools.Stats;

            _mainChart.AddSample(stats.UpdateTimeMs);

            // Gather CPU events
            var data = ProfilingTools.GetEventsCPU();

            _events.Add(data);

            // Update timeline if using the last frame
            if (_mainChart.SelectedSampleIndex == -1)
            {
                var viewRange = GetEventsViewRange();
                UpdateTimeline(ref viewRange);
                UpdateTable(ref viewRange);
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Gets the collected CPU events by the profiler from local or remote session.
 /// </summary>
 /// <returns>Buffer with events per thread.</returns>
 public           ThreadStats[] GetEventsCPU()
 {
     return(_cpuEvents ?? (_cpuEvents = ProfilingTools.GetEventsCPU()));
 }