X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=gui%2Fprofiledialog.cpp;h=67db0094f448dff9061abed1bed4b6486e4e15a4;hb=dd2a1c0627d0a64903878bec5d6dcb2cd69fd443;hp=bfe0881261163bb7d64e8bf083a3c091a1a8eca5;hpb=902626cc60d258582a843f318a2fd5f5a76c511f;p=apitrace diff --git a/gui/profiledialog.cpp b/gui/profiledialog.cpp index bfe0881..67db009 100644 --- a/gui/profiledialog.cpp +++ b/gui/profiledialog.cpp @@ -10,6 +10,12 @@ ProfileDialog::ProfileDialog(QWidget *parent) connect(m_timeline, SIGNAL(jumpToCall(int)), SIGNAL(jumpToCall(int))); connect(m_timeline, SIGNAL(selectionChanged(int64_t,int64_t)), SLOT(selectionChanged(int64_t,int64_t))); + + connect(m_gpuGraph, SIGNAL(jumpToCall(int)), SIGNAL(jumpToCall(int))); + connect(m_cpuGraph, SIGNAL(jumpToCall(int)), SIGNAL(jumpToCall(int))); + + connect(m_gpuGraph, SIGNAL(viewChanged(int,int)), m_cpuGraph, SLOT(changeView(int,int))); + connect(m_cpuGraph, SIGNAL(viewChanged(int,int)), m_gpuGraph, SLOT(changeView(int,int))); } @@ -38,6 +44,8 @@ void ProfileDialog::setProfile(trace::Profile* profile) m_profile = profile; m_timeline->setProfile(m_profile); + m_gpuGraph->setProfile(m_profile, GraphGpu); + m_cpuGraph->setProfile(m_profile, GraphCpu); ProfileTableModel* model = new ProfileTableModel(m_table); model->setProfile(m_profile);