From 685d6ae32b08b5a33fd3bd6af0a295f5b10d4df6 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Mon, 21 Dec 2009 16:54:46 +0000 Subject: [PATCH] Added columns for the number of I/O bursts and the summed up I/O time. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34733 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- .../debuganalyzer/gui/main_window/ThreadsPage.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/apps/debuganalyzer/gui/main_window/ThreadsPage.cpp b/src/apps/debuganalyzer/gui/main_window/ThreadsPage.cpp index 74c61bf609..d0f2a25d9b 100644 --- a/src/apps/debuganalyzer/gui/main_window/ThreadsPage.cpp +++ b/src/apps/debuganalyzer/gui/main_window/ThreadsPage.cpp @@ -26,7 +26,7 @@ public: virtual int32 CountColumns() const { - return 14; + return 16; } virtual int32 CountRows() const @@ -89,6 +89,12 @@ public: 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 @@ MainWindow::ThreadsPage::ThreadsPage(MainWindow* parent) 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); }