+1
−0
+31
−17
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
1. Create intent receiver in StatsCompanionService to listen to shutdown events. 2. Create StatsWriter class to handle disk writes and deleting files. 3. Update StatsLogProcessor, ConfigManager, and StatsService to handle files on disk using StatsWriter. 4. Add a wrapper for ConfigMetricsReport. Still TODO is to be able to add a guardrail to prevent accumulating excessive amount files on disk, which will be followed up by another change. Test: statsd, statsd_test Change-Id: Ia0b3af315af545daa8b0078b3700c600aa7c285f