summaryrefslogtreecommitdiffstats
path: root/wsd/Admin.hpp
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2017-06-03 22:53:57 +0100
committerMichael Meeks <michael.meeks@collabora.com>2017-06-03 22:53:57 +0100
commiteeaf436d5353cac3846e7cd69dc3a012eedf6cb0 (patch)
tree0fb2d22512a1671caa7f346e56616133fbede218 /wsd/Admin.hpp
parentAccumulate I/O stats per document. (diff)
downloadonline-eeaf436d5353cac3846e7cd69dc3a012eedf6cb0.tar.gz
online-eeaf436d5353cac3846e7cd69dc3a012eedf6cb0.zip
Admin: show cumulative bandwidth sent / recv'd over all time.
Change-Id: I3f9f398d1de19d54e0aa4c51bc44c597019dc839
Diffstat (limited to 'wsd/Admin.hpp')
-rw-r--r--wsd/Admin.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/wsd/Admin.hpp b/wsd/Admin.hpp
index f9d8bb6acd..2c77e391f7 100644
--- a/wsd/Admin.hpp
+++ b/wsd/Admin.hpp
@@ -69,7 +69,7 @@ public:
/// Custom poll thread function
void pollingThread() override;
- unsigned getTotalMemoryUsage();
+ size_t getTotalMemoryUsage();
void modificationAlert(const std::string& dockey, Poco::Process::PID pid, bool value);
/// Update the Admin Model.
@@ -99,6 +99,7 @@ public:
void updateLastActivityTime(const std::string& docKey);
void updateMemoryDirty(const std::string& docKey, int dirty);
+ void addBytes(const std::string& docKey, uint64_t sent, uint64_t recv);
void dumpState(std::ostream& os) override;
@@ -107,7 +108,7 @@ private:
/// the Admin Poll thread.
AdminModel _model;
int _forKitPid;
- long _lastTotalMemory;
+ size_t _lastTotalMemory;
std::atomic<int> _memStatsTaskIntervalMs;
std::atomic<int> _cpuStatsTaskIntervalMs;