summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ed60b9d)
raw | patch | inline | side by side (parent: ed60b9d)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 20 Aug 2010 15:11:28 +0000 (15:11 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 20 Aug 2010 15:11:28 +0000 (15:11 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19423 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/plugins/generic/statistics/class_statistics.inc | patch | blob | history |
diff --git a/gosa-core/plugins/generic/statistics/class_statistics.inc b/gosa-core/plugins/generic/statistics/class_statistics.inc
index a86f5491fafd41c1b50085d41c5209c2c2de12cb..b615da14d848c56066aa13572f320a1f0c3ea1f5 100644 (file)
$this->generateCategoryPieGraph($gData['actionsPerCategory']);
}
$this->generateActionsGraph($gData);
- $this->generateSystemStatsGraph($gData);
+
+ // Generate graph which displays the memory usage over time
+ $series = array(
+ 'max_mem' => _('Max'),
+ 'avg_mem' => _('Avergae'),
+ 'min_mem' => _('Min'));
+ $this->generateSystemStatsGraph($gData,'usagePerInterval',$series, _("Memory usage"),3);
+
+ // Generate graph which displays the cpu load over time
+ $series = array(
+ 'max_load' => _('Max'),
+ 'avg_load' => _('Avergae'),
+ 'min_load' => _('Min'));
+ $this->generateSystemStatsGraph($gData,'usagePerInterval',$series, _("CPU load"),4);
+
+ // Generate graph which displays the render time
+ $series = array(
+ 'max_render' => _('Max'),
+ 'avg_render' => _('Avergae'),
+ 'min_render' => _('Min'));
+ $this->generateSystemStatsGraph($gData,'usagePerInterval',$series, _("Render time"),5);
+
+ // Generate graph which displays the plugin duration
+ $series = array(
+ 'max_dur' => _('Max'),
+ 'avg_dur' => _('Avergae'),
+ 'min_dur' => _('Min'));
+ $this->generateSystemStatsGraph($gData,'usagePerInterval',$series, _("Seconds per action"),6);
}
*/
function generateSystemStatsGraph($gData, $key = "", $series= array(), $title = "", $gID=0 )
{
-
- $title = _("Memory usage");
- $key = "usagePerInterval";
- $series = array(
- 'max_mem' => _('Max'),
- 'avg_mem' => _('Avergae'),
- 'min_mem' => _('Min'));
- $gID = 3;
-
// Add series data to dataSet
$dataSet = new pData;
$max = 0;
$chart->drawGraphArea(255,255,255,TRUE);
$chart->drawGrid(4,TRUE,200,200,200,50);
$chart->drawTreshold(0,143,55,72,TRUE,TRUE);
- $chart->drawTitle(50,22,"Memory usage",50,50,50,585);
+ $chart->drawTitle(50,22,$title,50,50,50,585);
$chart->drawLegend(650,30,$dataSet->GetDataDescription(),255,255,255);
$chart->drawScale($dataSet->GetData(),$dataSet->GetDataDescription(),SCALE_NORMAL,150,150,150,TRUE,0,2, FALSE);