You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
- Timing view: Added "Cpu Core" tracks when context switches are available. By default the tracks are hidden and can be enabled from Tracks / Context Switches sub-menu. - Timing view: Added "Alt + C" shortcut key to toggle visibility of "Cpu Core" tracks. - Timing view: Added "filter by event type" for Cpu Core tracks. Double click an event in a Cpu Core track highlights all events of same type (same thread) in all Cpu Core tracks. Also fixed the "filter by event type" to fade out / highlight only tracks of same type. #rb Catalin.Dragoiu [CL 16955032 by ionut matasaru in ue5-main branch]
32 lines
740 B
C++
32 lines
740 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "TraceServices/Model/AnalysisSession.h"
|
|
#include "TraceServices/Model/StackSamples.h"
|
|
#include "Containers/Map.h"
|
|
|
|
namespace TraceServices
|
|
{
|
|
|
|
class FStackSamplesProvider
|
|
: public IStackSamplesProvider
|
|
{
|
|
public:
|
|
static const FName ProviderName;
|
|
|
|
explicit FStackSamplesProvider(IAnalysisSession& Session);
|
|
virtual ~FStackSamplesProvider();
|
|
|
|
const TPagedArray<FStackSample>* GetStackSamples(uint32 ThreadId) const override;
|
|
|
|
void Add(uint32 ThreadId, double Time, uint32 Count, const uint64* Addresses);
|
|
|
|
private:
|
|
IAnalysisSession& Session;
|
|
TMap<uint32, TPagedArray<FStackSample>*> Threads;
|
|
TPagedArray<uint64> AddressValues;
|
|
};
|
|
|
|
} // namespace TraceServices
|