aboutsummaryrefslogtreecommitdiffstats
path: root/src/Stats.cxx (follow)
Commit message (Collapse)AuthorAgeFilesLines
* copyright year 2014Max Kellermann2014-01-131-1/+1
|
* Stats: lazy initializationMax Kellermann2014-01-101-7/+34
| | | | | Ask the DatabasePlugin for stats when the first client requests them, not at startup.
* Stats: use monotonic clock instead of GTimerMax Kellermann2013-11-241-12/+7
| | | | Reduce GLib usage.
* Stats: use GetProcessTimes() on WIN32 to determine MPD uptimeMax Kellermann2013-11-241-2/+14
| | | | | Don't use GTimer if the operating system is able to tell us the uptime.
* DatabasePlugin: add method GetUpdateStamp()Max Kellermann2013-11-221-2/+3
| | | | | | Refactor SimpleDatabase::GetLastModified() to be generic for all plugins. Remove the SimpleDatabase assumption from db_stats_print(), allowing it to be implemented by all database plugins.
* Stats: print db statistics only if db is availableMax Kellermann2013-11-221-6/+19
| | | | Fixes crash on "stats" in certain configurations.
* Stats: print more unsigned integersMax Kellermann2013-11-221-6/+6
|
* Stats: auto-reload statistics with proxy pluginMax Kellermann2013-11-221-0/+7
|
* Stats: use struct DatabaseStatsMax Kellermann2013-11-221-10/+4
| | | | Eliminate redundant declaration.
* Stats: move the GTimer variable out of struct statsMax Kellermann2013-11-221-3/+4
|
* Stats: don't export the global variable "stats"Max Kellermann2013-11-221-1/+1
| | | | Unused outside of Stats.cxx.
* Stats: print db_update as unsigned integerMax Kellermann2013-11-221-2/+2
|
* ClientInternal: move class Client to Client.hxxMax Kellermann2013-10-191-1/+1
| | | | | Publish the Client API, preparing to move more code into the Client class.
* *: use references instead of pointersMax Kellermann2013-10-191-2/+2
|
* Stats: don't include glib.h in headerMax Kellermann2013-10-021-0/+2
| | | | Use forward declaration instead.
* Stats: rename stats.h to Stats.hxxMax Kellermann2013-10-021-5/+1
|
* Log: new logging library APIMax Kellermann2013-10-021-1/+2
| | | | | Prepare to migrate away from GLib. Currently, we're still using GLib as a backend.
* util/Error: new error passing libraryMax Kellermann2013-09-041-4/+4
| | | | Replaces GLib's GError.
* PlayerControl: move functions into the classMax Kellermann2013-01-201-1/+1
|
* player_control.h: convert header to C++Max Kellermann2013-01-041-1/+1
|
* Client: rename the struct client to class ClientMax Kellermann2013-01-031-1/+1
|
* client: convert to C++Max Kellermann2013-01-031-3/+2
|
* database.h: rename to DatabaseSimple.hxxMax Kellermann2013-01-031-1/+1
|
* Stats: stats_print() returns voidMax Kellermann2012-08-291-3/+2
|
* DatabasePlugin: add method GetStats()Max Kellermann2012-08-151-63/+18
| | | | | Optimize the ProxyDatabase by invoking "stats" on the peer, instead of visiting all songs.
* DatabaseGlue: add function db_is_simple()Max Kellermann2012-08-081-4/+8
| | | | Preparing for non-"simple" database plugins.
* db_selection: rename to DatabaseSelectionMax Kellermann2012-08-071-3/+2
|
* Database{Plugin,Visitor}: pass referencesMax Kellermann2012-08-071-4/+4
|
* stats: convert to C++Max Kellermann2012-08-021-0/+133