Loading cmds/statsd/Android.mk +2 −0 Original line number Diff line number Diff line Loading @@ -41,6 +41,8 @@ statsd_common_src := \ src/external/ResourceHealthManagerPuller.cpp \ src/external/CpuTimePerUidPuller.cpp \ src/external/CpuTimePerUidFreqPuller.cpp \ src/external/KernelUidCpuActiveTimeReader.cpp \ src/external/KernelUidCpuClusterTimeReader.cpp \ src/external/StatsPullerManagerImpl.cpp \ src/logd/LogEvent.cpp \ src/logd/LogListener.cpp \ Loading cmds/statsd/src/StatsService.cpp +6 −0 Original line number Diff line number Diff line Loading @@ -551,6 +551,12 @@ status_t StatsService::cmd_dump_memory_info(FILE* out) { return NO_ERROR; } status_t StatsService::cmd_clear_puller_cache(FILE* out) { mStatsPullerManager.ClearPullerCache(); fprintf(out, "Puller cached data removed!\n"); return NO_ERROR; } Status StatsService::informAllUidData(const vector<int32_t>& uid, const vector<int64_t>& version, const vector<String16>& app) { VLOG("StatsService::informAllUidData was called"); Loading cmds/statsd/src/StatsService.h +5 −0 Original line number Diff line number Diff line Loading @@ -197,6 +197,11 @@ private: */ status_t cmd_dump_memory_info(FILE* out); /* * Clear all puller cached data */ status_t cmd_clear_puller_cache(FILE* out); /** * Update a configuration. */ Loading cmds/statsd/src/external/StatsPuller.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -59,6 +59,11 @@ bool StatsPuller::Pull(std::vector<std::shared_ptr<LogEvent>>* data) { return ret; } void StatsPuller::ClearCache() { lock_guard<std::mutex> lock(mLock); mCachedData.clear(); } } // namespace statsd } // namespace os } // namespace android cmds/statsd/src/external/StatsPuller.h +2 −0 Original line number Diff line number Diff line Loading @@ -38,6 +38,8 @@ public: bool Pull(std::vector<std::shared_ptr<LogEvent>>* data); void ClearCache(); protected: // The atom tag id this puller pulls const int mTagId; Loading Loading
cmds/statsd/Android.mk +2 −0 Original line number Diff line number Diff line Loading @@ -41,6 +41,8 @@ statsd_common_src := \ src/external/ResourceHealthManagerPuller.cpp \ src/external/CpuTimePerUidPuller.cpp \ src/external/CpuTimePerUidFreqPuller.cpp \ src/external/KernelUidCpuActiveTimeReader.cpp \ src/external/KernelUidCpuClusterTimeReader.cpp \ src/external/StatsPullerManagerImpl.cpp \ src/logd/LogEvent.cpp \ src/logd/LogListener.cpp \ Loading
cmds/statsd/src/StatsService.cpp +6 −0 Original line number Diff line number Diff line Loading @@ -551,6 +551,12 @@ status_t StatsService::cmd_dump_memory_info(FILE* out) { return NO_ERROR; } status_t StatsService::cmd_clear_puller_cache(FILE* out) { mStatsPullerManager.ClearPullerCache(); fprintf(out, "Puller cached data removed!\n"); return NO_ERROR; } Status StatsService::informAllUidData(const vector<int32_t>& uid, const vector<int64_t>& version, const vector<String16>& app) { VLOG("StatsService::informAllUidData was called"); Loading
cmds/statsd/src/StatsService.h +5 −0 Original line number Diff line number Diff line Loading @@ -197,6 +197,11 @@ private: */ status_t cmd_dump_memory_info(FILE* out); /* * Clear all puller cached data */ status_t cmd_clear_puller_cache(FILE* out); /** * Update a configuration. */ Loading
cmds/statsd/src/external/StatsPuller.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -59,6 +59,11 @@ bool StatsPuller::Pull(std::vector<std::shared_ptr<LogEvent>>* data) { return ret; } void StatsPuller::ClearCache() { lock_guard<std::mutex> lock(mLock); mCachedData.clear(); } } // namespace statsd } // namespace os } // namespace android
cmds/statsd/src/external/StatsPuller.h +2 −0 Original line number Diff line number Diff line Loading @@ -38,6 +38,8 @@ public: bool Pull(std::vector<std::shared_ptr<LogEvent>>* data); void ClearCache(); protected: // The atom tag id this puller pulls const int mTagId; Loading