summaryrefslogtreecommitdiff
path: root/src/Stats.cxx
AgeCommit message (Collapse)Author
2017-12-19Main, ...: catch any exception, not just std::runtime_errorMax Kellermann
2017-12-16Merge branch 'v0.20.x'Max Kellermann
2017-12-12*: check defined(_WIN32) instead of defined(WIN32)Max Kellermann
Only _WIN32 is defined by the compiler, and WIN32 is not standardized and may be missing. Closes #169
2017-02-11db/Interface: GetUpdateStamp() returns std::chrono::system_clock::time_pointMax Kellermann
2017-01-03update copyright yearMax Kellermann
2016-12-28Stats: use std::chronoMax Kellermann
2016-12-28Stats: initialize start_time automaticallyMax Kellermann
2016-10-29db/Interface: migrate visitor methods from class Error to C++ exceptionsMax Kellermann
2016-03-18Stats: catch exceptionsMax Kellermann
2016-02-26update copyright year to 2016Max Kellermann
2015-08-15PlayerThread, ...: move to src/player/Max Kellermann
2015-08-12client/Response: new Client wrapper class for writing responsesMax Kellermann
2015-01-01Copyright year 2015Max Kellermann
2014-08-29db/Stats: use std::chrono::duration for the total durationMax Kellermann
Use milliseconds precision to reduce rounding errors.
2014-02-19DatabasePlugin: split headerMax Kellermann
2014-02-04Instance: add Database attributeMax Kellermann
Move from db/DatabaseGlue.cxx, eliminating global variable.
2014-02-01Stats: pass Database reference aroundMax Kellermann
Call GetDatabase() only once.
2014-02-01Stats: remove obsolete "simple" plugin special caseMax Kellermann
The proxy plugin has now implemented the "idle" event listener.
2014-02-01Stats: return false if update has failedMax Kellermann
2014-01-30db: add compile-time option to disable databaseMax Kellermann
2014-01-24Database*: move to db/Max Kellermann
2014-01-24Client*: move to client/Max Kellermann
2014-01-13copyright year 2014Max Kellermann
2014-01-10Stats: lazy initializationMax Kellermann
Ask the DatabasePlugin for stats when the first client requests them, not at startup.
2013-11-24Stats: use monotonic clock instead of GTimerMax Kellermann
Reduce GLib usage.
2013-11-24Stats: use GetProcessTimes() on WIN32 to determine MPD uptimeMax Kellermann
Don't use GTimer if the operating system is able to tell us the uptime.
2013-11-22DatabasePlugin: add method GetUpdateStamp()Max Kellermann
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.
2013-11-22Stats: print db statistics only if db is availableMax Kellermann
Fixes crash on "stats" in certain configurations.
2013-11-22Stats: print more unsigned integersMax Kellermann
2013-11-22Stats: auto-reload statistics with proxy pluginMax Kellermann
2013-11-22Stats: use struct DatabaseStatsMax Kellermann
Eliminate redundant declaration.
2013-11-22Stats: move the GTimer variable out of struct statsMax Kellermann
2013-11-22Stats: don't export the global variable "stats"Max Kellermann
Unused outside of Stats.cxx.
2013-11-22Stats: print db_update as unsigned integerMax Kellermann
2013-10-19ClientInternal: move class Client to Client.hxxMax Kellermann
Publish the Client API, preparing to move more code into the Client class.
2013-10-19*: use references instead of pointersMax Kellermann
2013-10-02Stats: don't include glib.h in headerMax Kellermann
Use forward declaration instead.
2013-10-02Stats: rename stats.h to Stats.hxxMax Kellermann
2013-10-02Log: new logging library APIMax Kellermann
Prepare to migrate away from GLib. Currently, we're still using GLib as a backend.
2013-09-04util/Error: new error passing libraryMax Kellermann
Replaces GLib's GError.
2013-01-20PlayerControl: move functions into the classMax Kellermann
2013-01-04player_control.h: convert header to C++Max Kellermann
2013-01-03Client: rename the struct client to class ClientMax Kellermann
2013-01-03client: convert to C++Max Kellermann
2013-01-03database.h: rename to DatabaseSimple.hxxMax Kellermann
2012-08-29Stats: stats_print() returns voidMax Kellermann
2012-08-15DatabasePlugin: add method GetStats()Max Kellermann
Optimize the ProxyDatabase by invoking "stats" on the peer, instead of visiting all songs.
2012-08-08DatabaseGlue: add function db_is_simple()Max Kellermann
Preparing for non-"simple" database plugins.
2012-08-07db_selection: rename to DatabaseSelectionMax Kellermann
2012-08-07Database{Plugin,Visitor}: pass referencesMax Kellermann