[haiku-commits] r34733 - haiku/trunk/src/apps/debuganalyzer/gui/main_window

  • From: ingo_weinhold@xxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 21 Dec 2009 17:54:47 +0100 (CET)

Author: bonefish
Date: 2009-12-21 17:54:46 +0100 (Mon, 21 Dec 2009)
New Revision: 34733
Changeset: http://dev.haiku-os.org/changeset/34733/haiku

Modified:
   haiku/trunk/src/apps/debuganalyzer/gui/main_window/ThreadsPage.cpp
Log:
Added columns for the number of I/O bursts and the summed up I/O time.


Modified: haiku/trunk/src/apps/debuganalyzer/gui/main_window/ThreadsPage.cpp
===================================================================
--- haiku/trunk/src/apps/debuganalyzer/gui/main_window/ThreadsPage.cpp  
2009-12-21 16:53:38 UTC (rev 34732)
+++ haiku/trunk/src/apps/debuganalyzer/gui/main_window/ThreadsPage.cpp  
2009-12-21 16:54:46 UTC (rev 34733)
@@ -26,7 +26,7 @@
 
        virtual int32 CountColumns() const
        {
-               return 14;
+               return 16;
        }
 
        virtual int32 CountRows() const
@@ -89,6 +89,12 @@
                        case 13:
                                value.SetTo(thread->UnspecifiedWaitTime());
                                return true;
+                       case 14:
+                               value.SetTo(thread->IOCount());
+                               return true;
+                       case 15:
+                               value.SetTo(thread->IOTime());
+                               return true;
                        default:
                                return false;
                }
@@ -143,6 +149,10 @@
                20, 1000, false, B_TRUNCATE_END, B_ALIGN_RIGHT));
        fThreadsTable->AddColumn(new NanotimeTableColumn(13, "Unspecified 
Time", 80,
                20, 1000, false, B_TRUNCATE_END, B_ALIGN_RIGHT));
+       fThreadsTable->AddColumn(new Int64TableColumn(14, "I/O Count", 80, 20,
+               1000, B_TRUNCATE_END, B_ALIGN_RIGHT));
+       fThreadsTable->AddColumn(new NanotimeTableColumn(15, "I/O Time", 80,
+               20, 1000, false, B_TRUNCATE_END, B_ALIGN_RIGHT));
 
        fThreadsTable->AddTableListener(this);
 }


Other related posts:

  • » [haiku-commits] r34733 - haiku/trunk/src/apps/debuganalyzer/gui/main_window - ingo_weinhold