aboutsummaryrefslogtreecommitdiffstats
path: root/src/Stats.cxx (follow)
Commit message (Collapse)AuthorAgeFilesLines
* db/Stats: use std::chrono::duration for the total durationMax Kellermann2014-08-291-2/+5
| | | | Use milliseconds precision to reduce rounding errors.
* DatabasePlugin: split headerMax Kellermann2014-02-191-1/+2
|
* Instance: add Database attributeMax Kellermann2014-02-041-4/+3
| | | | Move from db/DatabaseGlue.cxx, eliminating global variable.
* Stats: pass Database reference aroundMax Kellermann2014-02-011-9/+8
| | | | Call GetDatabase() only once.
* Stats: remove obsolete "simple" plugin special caseMax Kellermann2014-02-011-8/+0
| | | | The proxy plugin has now implemented the "idle" event listener.
* Stats: return false if update has failedMax Kellermann2014-02-011-1/+1
|
* db: add compile-time option to disable databaseMax Kellermann2014-01-301-0/+10
|
* Database*: move to db/Max Kellermann2014-01-241-4/+4
|
* Client*: move to client/Max Kellermann2014-01-241-1/+1
|
* 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