Implement a Performance Counter Viewer pane, hook up selection dialog

This commit is contained in:
Matthäus G. Chajdas
2017-08-18 13:37:29 +02:00
committed by baldurk
parent 7d15d75638
commit 03343239c7
10 changed files with 183 additions and 96 deletions
+18
View File
@@ -40,6 +40,7 @@
#include "Windows/Dialogs/LiveCapture.h"
#include "Windows/EventBrowser.h"
#include "Windows/MainWindow.h"
#include "Windows/PerformanceCounterViewer.h"
#include "Windows/PipelineState/PipelineStateViewer.h"
#include "Windows/PixelHistoryView.h"
#include "Windows/PythonShell.h"
@@ -732,6 +733,18 @@ IDebugMessageView *CaptureContext::GetDebugMessageView()
return m_DebugMessageView;
}
IPerformanceCounterViewer *CaptureContext::GetPerformanceCounterViewer()
{
if(m_PerformanecCounterViewer)
return m_PerformanecCounterViewer;
m_PerformanecCounterViewer = new PerformanceCounterViewer(*this, m_MainWindow);
m_PerformanecCounterViewer->setObjectName(lit("performanceCounterViewer"));
setupDockWindow(m_PerformanecCounterViewer);
return m_PerformanecCounterViewer;
}
IStatisticsViewer *CaptureContext::GetStatisticsViewer()
{
if(m_StatisticsViewer)
@@ -803,6 +816,11 @@ void CaptureContext::ShowDebugMessageView()
m_MainWindow->showDebugMessageView();
}
void CaptureContext::ShowPerformanceCounterViewer()
{
m_MainWindow->showPerformanceCounterViewer();
}
void CaptureContext::ShowStatisticsViewer()
{
m_MainWindow->showStatisticsViewer();