* Added scroll view around the activity chart.
* Set the displayed domain to 0.5 s for debugging purposes. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30649 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -8,6 +8,7 @@
|
|||||||
#include <new>
|
#include <new>
|
||||||
|
|
||||||
#include <GroupLayoutBuilder.h>
|
#include <GroupLayoutBuilder.h>
|
||||||
|
#include <ScrollView.h>
|
||||||
|
|
||||||
#include <AutoDeleter.h>
|
#include <AutoDeleter.h>
|
||||||
|
|
||||||
@@ -315,7 +316,7 @@ ThreadWindow::ActivityPage::ActivityPage()
|
|||||||
fActivityChart = new Chart(fActivityChartRenderer);
|
fActivityChart = new Chart(fActivityChartRenderer);
|
||||||
|
|
||||||
BGroupLayoutBuilder(this)
|
BGroupLayoutBuilder(this)
|
||||||
.Add(fActivityChart)
|
.Add(new BScrollView("activity scroll", fActivityChart, 0, true, false))
|
||||||
.AddStrut(20)
|
.AddStrut(20)
|
||||||
;
|
;
|
||||||
|
|
||||||
@@ -327,15 +328,15 @@ ThreadWindow::ActivityPage::ActivityPage()
|
|||||||
fActivityChart->SetAxis(CHART_AXIS_BOTTOM, axis);
|
fActivityChart->SetAxis(CHART_AXIS_BOTTOM, axis);
|
||||||
|
|
||||||
axis = new LegendChartAxis(
|
axis = new LegendChartAxis(
|
||||||
new BigtimeChartAxisLegendSource, new StringChartLegendRenderer);
|
new BigtimeChartAxisLegendSource, new StringChartLegendRenderer);
|
||||||
fActivityChart->SetAxis(CHART_AXIS_TOP, axis);
|
fActivityChart->SetAxis(CHART_AXIS_TOP, axis);
|
||||||
|
|
||||||
axis = new LegendChartAxis(
|
axis = new LegendChartAxis(
|
||||||
new DefaultChartAxisLegendSource, new StringChartLegendRenderer);
|
new DefaultChartAxisLegendSource, new StringChartLegendRenderer);
|
||||||
fActivityChart->SetAxis(CHART_AXIS_LEFT, axis);
|
fActivityChart->SetAxis(CHART_AXIS_LEFT, axis);
|
||||||
|
|
||||||
axis = new LegendChartAxis(
|
axis = new LegendChartAxis(
|
||||||
new DefaultChartAxisLegendSource, new StringChartLegendRenderer);
|
new DefaultChartAxisLegendSource, new StringChartLegendRenderer);
|
||||||
fActivityChart->SetAxis(CHART_AXIS_RIGHT, axis);
|
fActivityChart->SetAxis(CHART_AXIS_RIGHT, axis);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -402,5 +403,6 @@ ThreadWindow::ActivityPage::SetModel(ThreadModel* model)
|
|||||||
fPreemptionTimeData = new(std::nothrow) ThreadActivityData(fThreadModel,
|
fPreemptionTimeData = new(std::nothrow) ThreadActivityData(fThreadModel,
|
||||||
LATENCY_TIME);
|
LATENCY_TIME);
|
||||||
fActivityChart->AddDataSource(fPreemptionTimeData, &latencyConfig);
|
fActivityChart->AddDataSource(fPreemptionTimeData, &latencyConfig);
|
||||||
|
fActivityChart->SetDisplayDomain(ChartDataRange(0, 500000));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user