summaryrefslogtreecommitdiffstats
path: root/ctdb/server/ctdb_statistics.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove explicit include of lib/tevent/tevent.h.Amitay Isaacs2012-04-131-1/+0
| | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 0681014ca5ed2a9b56f63fdace7f894beccf8a9a)
* Rename ctdb_control_get_stat_history() local variable to avoid shadowing.Martin Schwenke2011-11-111-6/+6
| | | | | | | | | | | | Local variable stat generates a warning because it shadows a global declatation, presumably stat(2). Rename it to s. This is in the context of wanting to run CCAN-style tests where most of the ctdbd code is just included in the test program. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit d17efacb3aa6fac61d89f4c88ca17579341c335f)
* initialize the statistics to the current time, not start of epochRonnie Sahlberg2010-11-151-0/+1
| | | | | | this makes "ctdb statistics" show correct "start of starts collection" (This used to be ctdb commit 7303058616fdb1d7f58cce2349c034e9f611275e)
* Create a tunable for how often to collect rolling statistics and initialize ↵Ronnie Sahlberg2010-09-301-2/+3
| | | | | | it to 1 second (This used to be ctdb commit cb8c779bb5d9862abbe08919aa181a1a1b2bef18)
* Add rolling statistics that are collected across 10 second intervals.Ronnie Sahlberg2010-09-291-0/+77
Add a new command "ctdb stats [num]" that prints the [num] most recent statistics intervals collected. (This used to be ctdb commit e6e16fcd5a45ebd3739a8160c8fb5f44494edb9e)