Show debuggee command line in heaptrack_gui
authorMilian Wolff <mail@milianw.de>
Mon, 15 Jun 2015 19:27:03 +0000 (21:27 +0200)
committerMilian Wolff <mail@milianw.de>
Mon, 15 Jun 2015 19:27:03 +0000 (21:27 +0200)
accumulatedtracedata.cpp
accumulatedtracedata.h
gui/mainwindow.ui
gui/model.cpp

index bd27b58..1788aab 100644 (file)
@@ -79,6 +79,7 @@ void AccumulatedTraceData::handleAllocation()
 
 void AccumulatedTraceData::handleDebuggee(const char* command)
 {
+    debuggee = command;
 }
 
 const string& AccumulatedTraceData::stringify(const StringIndex stringId) const
index 2747a8f..1e8eaf2 100644 (file)
@@ -155,6 +155,7 @@ struct AccumulatedTraceData
     size_t peak = 0;
     size_t leaked = 0;
     size_t totalTime = 0;
+    std::string debuggee;
 
     // our indices are sequentially increasing thus a new allocation can only ever
     // occur with an index larger than any other we encountered so far
index 22d2a79..32107c6 100644 (file)
         <item>
          <widget class="QLabel" name="summary">
           <property name="text">
-           <string/>
+           <string notr="true">summary goes here</string>
+          </property>
+          <property name="wordWrap">
+           <bool>true</bool>
           </property>
          </widget>
         </item>
index eb8ea31..9a850da 100644 (file)
@@ -41,6 +41,7 @@ QString generateSummary(const AccumulatedTraceData& data)
     QTextStream stream(&ret);
     const double totalTimeS = 0.001 * data.totalTime;
     stream << "<qt>"
+           << i18n("<strong>debuggee</strong>: <code>%1</code>", QString::fromStdString(data.debuggee)) << "<br/>"
            << i18n("<strong>total runtime</strong>: %1s", totalTimeS) << "<br/>"
            << i18n("<strong>bytes allocated in total</strong> (ignoring deallocations): %1 (%2/s)",
                    format.formatByteSize(data.totalAllocated, 2), format.formatByteSize(data.totalAllocated / totalTimeS)) << "<br/>"