mirror of
https://github.com/epasveer/seer.git
synced 2026-08-30 00:50:42 +08:00
Add menu on logger/tracker to launch memory visualizer.
This commit is contained in:
@@ -52,8 +52,6 @@ void SeerStackFramesBrowserWidget::handleText (const QString& text) {
|
||||
// frame={level=\"1\",addr=\"0x0000000000400cc3\",func=\"main\",file=\"helloworld.cpp\",fullname=\"/home/erniep/Development/Peak/src/Seer/helloworld/helloworld.cpp\",line=\"14\",arch=\"i386:x86-64\"}
|
||||
// ]
|
||||
|
||||
//qDebug() << text;
|
||||
|
||||
// If we are simply moving up and down the stack (via frame-select) then the text won't change.
|
||||
// If it is different, reconstruct the tree. Select the first frame.
|
||||
if (text != _previousStackFrameText) {
|
||||
@@ -84,8 +82,6 @@ void SeerStackFramesBrowserWidget::handleText (const QString& text) {
|
||||
QString line_text = Seer::parseFirst(frame_text, "line=", '"', '"', false);
|
||||
QString arch_text = Seer::parseFirst(frame_text, "arch=", '"', '"', false);
|
||||
|
||||
// qDebug() << file_text << fullname_text << line_text;
|
||||
|
||||
// Create the item.
|
||||
QTreeWidgetItem* item = new QTreeWidgetItem;
|
||||
item->setText(0, level_text);
|
||||
@@ -174,8 +170,6 @@ void SeerStackFramesBrowserWidget::handleItemClicked (QTreeWidgetItem* item, int
|
||||
|
||||
int lineno = item->text(3).toInt();
|
||||
|
||||
//qDebug() << "Emit selectedFile and selectedFrame";
|
||||
|
||||
emit selectedFile(item->text(2), item->text(4), lineno);
|
||||
emit selectedFrame(item->text(0).toInt());
|
||||
emit selectedAddress(item->text(5));
|
||||
@@ -185,8 +179,6 @@ void SeerStackFramesBrowserWidget::handleItemEntered (QTreeWidgetItem* item, int
|
||||
|
||||
Q_UNUSED(column);
|
||||
|
||||
//qDebug() << item->text(0) << column;
|
||||
|
||||
item->setToolTip(0, item->text(0) + " : " + item->text(1) + " : " + item->text(2) + " : " + item->text(3));
|
||||
|
||||
for (int i=1; i<stackTreeWidget->columnCount(); i++) { // Copy tooltip to other columns.
|
||||
|
||||
Reference in New Issue
Block a user