Skip to content

Commit

Permalink
issue #174
Browse files Browse the repository at this point in the history
added a perform snapshot button
  • Loading branch information
ishankhare07 committed Jun 30, 2015
1 parent c582c70 commit 6ac81e1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions rbkit-lib/ui/actiontoolbar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,11 @@ void ActionToolbar::setupSubscriber()
subscriber, SLOT(startListening(QString, QString)));
connect(this, SIGNAL(triggerGc()), subscriber, SLOT(triggerGc()));
connect(this, SIGNAL(takeSnapshot()), subscriber, SLOT(takeSnapshot()));
<<<<<<< HEAD
connect(this, SIGNAL(startCPUProfiling()), subscriber, SLOT(startCPUProfiling()));
connect(this, SIGNAL(stopCPUProfiling()), subscriber, SLOT(stopCPUProfiling()));
=======
>>>>>>> 000ee54... issue #174
connect(this, SIGNAL(startCPUSnapshot()), subscriber, SLOT(startCPUSnapshot()));

connect(subscriber, &Subscriber::errored, centralWidget, &CentralWidget::onError);
Expand Down Expand Up @@ -158,8 +161,11 @@ void ActionToolbar::setupToolBar()
QIcon(":/icons/Compare-32.png"),
"cpu_profiling");

<<<<<<< HEAD
connect(stopCPUButton, &QToolButton::clicked, this, &ActionToolbar::performStopCPUAction);

=======
>>>>>>> 000ee54... issue #174
cpusnapshotButton = toolBar->addRibbonAction("Take Snapshot",
"start_snapshot",
QIcon(":/icons/snapshot-32.png"),
Expand All @@ -174,13 +180,16 @@ void ActionToolbar::performGCAction()
emit triggerGc();
}

<<<<<<< HEAD
void ActionToolbar::performStartCPUAction() {
emit startCPUProfiling();
}

void ActionToolbar::performStopCPUAction() {
emit stopCPUProfiling();
}
=======
>>>>>>> 000ee54... issue #174
void ActionToolbar::performCPUSnapshot() {
emit startCPUSnapshot();
}
Expand Down

0 comments on commit 6ac81e1

Please sign in to comment.